/*
 * Module code.
 *
 * Generated by SIP 4.11.2 on Wed Feb  9 17:29:51 2011
 */

#include "sipAPInepomuk.h"

#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 12 "sipnepomukpart2.cpp"

#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 19 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "sipnepomukpart2.cpp"


extern "C" {static void assign_QHash_0100QString_0100Nepomuk_Types_Property(void *, SIP_SSIZE_T, const void *);}
static void assign_QHash_0100QString_0100Nepomuk_Types_Property(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHash<QString,Nepomuk::Types::Property> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHash<QString,Nepomuk::Types::Property> *>(sipSrc);
}


extern "C" {static void *array_QHash_0100QString_0100Nepomuk_Types_Property(SIP_SSIZE_T);}
static void *array_QHash_0100QString_0100Nepomuk_Types_Property(SIP_SSIZE_T sipNrElem)
{
    return new QHash<QString,Nepomuk::Types::Property>[sipNrElem];
}


extern "C" {static void *copy_QHash_0100QString_0100Nepomuk_Types_Property(const void *, SIP_SSIZE_T);}
static void *copy_QHash_0100QString_0100Nepomuk_Types_Property(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHash<QString,Nepomuk::Types::Property>(reinterpret_cast<const QHash<QString,Nepomuk::Types::Property> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QHash_0100QString_0100Nepomuk_Types_Property(void *, int);}
static void release_QHash_0100QString_0100Nepomuk_Types_Property(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QHash<QString,Nepomuk::Types::Property> *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_QHash_0100QString_0100Nepomuk_Types_Property(PyObject *, void **, int *, PyObject *);}
static int convertTo_QHash_0100QString_0100Nepomuk_Types_Property(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QHash<QString,Nepomuk::Types::Property> **sipCppPtr = reinterpret_cast<QHash<QString,Nepomuk::Types::Property> **>(sipCppPtrV);

#line 94 "/usr/local/share/py-sip/QtCore/qhash.sip"
    PyObject *t1obj, *t2obj;
    SIP_SSIZE_T i = 0;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyDict_Check(sipPy))
            return 0;

        while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
        {
            if (!sipCanConvertToType(t1obj, sipType_QString, SIP_NOT_NONE))
                return 0;

            if (!sipCanConvertToType(t2obj, sipType_Nepomuk_Types_Property, SIP_NOT_NONE))
                return 0;
        } 

        return 1;
    }

    QHash<QString, Nepomuk::Types::Property> *qm = new QHash<QString, Nepomuk::Types::Property>;
 
    while (PyDict_Next(sipPy, &i, &t1obj, &t2obj))
    {
        int state1, state2;

        QString *t1 = reinterpret_cast<QString *>(sipConvertToType(t1obj, sipType_QString, sipTransferObj, SIP_NOT_NONE, &state1, sipIsErr));
        Nepomuk::Types::Property *t2 = reinterpret_cast<Nepomuk::Types::Property *>(sipConvertToType(t2obj, sipType_Nepomuk_Types_Property, sipTransferObj, SIP_NOT_NONE, &state2, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseType(t1, sipType_QString, state1);
            sipReleaseType(t2, sipType_Nepomuk_Types_Property, state2);

            delete qm;
            return 0;
        }

        qm->insert(*t1, *t2);

        sipReleaseType(t1, sipType_QString, state1);
        sipReleaseType(t2, sipType_Nepomuk_Types_Property, state2);
    }
 
    *sipCppPtr = qm;
 
    return sipGetState(sipTransferObj);
#line 111 "sipnepomukpart2.cpp"
}


extern "C" {static PyObject *convertFrom_QHash_0100QString_0100Nepomuk_Types_Property(void *, PyObject *);}
static PyObject *convertFrom_QHash_0100QString_0100Nepomuk_Types_Property(void *sipCppV,PyObject *sipTransferObj)
{
   QHash<QString,Nepomuk::Types::Property> *sipCpp = reinterpret_cast<QHash<QString,Nepomuk::Types::Property> *>(sipCppV);

#line 42 "/usr/local/share/py-sip/QtCore/qhash.sip"
    // Create the dictionary.
    PyObject *d = PyDict_New();

    if (!d)
        return NULL;

    // Set the dictionary elements.
    QHash<QString, Nepomuk::Types::Property>::const_iterator i = sipCpp->constBegin();

    while (i != sipCpp->constEnd())
    {
        QString *t1 = new QString(i.key());
        Nepomuk::Types::Property *t2 = new Nepomuk::Types::Property(i.value());

        PyObject *t1obj = sipConvertFromNewType(t1, sipType_QString, sipTransferObj);
        PyObject *t2obj = sipConvertFromNewType(t2, sipType_Nepomuk_Types_Property, sipTransferObj);

        if (t1obj == NULL || t2obj == NULL || PyDict_SetItem(d, t1obj, t2obj) < 0)
        {
            Py_DECREF(d);

            if (t1obj)
            {
                Py_DECREF(t1obj);
            }
            else
            {
                delete t1;
            }

            if (t2obj)
            {
                Py_DECREF(t2obj);
            }
            else
            {
                delete t2;
            }

            return NULL;
        }

        Py_DECREF(t1obj);
        Py_DECREF(t2obj);

        ++i;
    }

    return d;
#line 170 "sipnepomukpart2.cpp"
}


sipMappedTypeDef sipTypeDef_nepomuk_QHash_0100QString_0100Nepomuk_Types_Property = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_267,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QHash_0100QString_0100Nepomuk_Types_Property,
    array_QHash_0100QString_0100Nepomuk_Types_Property,
    copy_QHash_0100QString_0100Nepomuk_Types_Property,
    release_QHash_0100QString_0100Nepomuk_Types_Property,
    convertTo_QHash_0100QString_0100Nepomuk_Types_Property,
    convertFrom_QHash_0100QString_0100Nepomuk_Types_Property
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 201 "sipnepomukpart2.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 205 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 208 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 211 "sipnepomukpart2.cpp"
#line 198 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 214 "sipnepomukpart2.cpp"
#line 343 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 217 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 220 "sipnepomukpart2.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 223 "sipnepomukpart2.cpp"
#line 632 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 226 "sipnepomukpart2.cpp"
#line 694 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 229 "sipnepomukpart2.cpp"
#line 756 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 232 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 235 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 238 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 241 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 244 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 247 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 250 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 253 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 256 "sipnepomukpart2.cpp"


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

    {
        qlonglong a0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        double a0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Variant *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QDate * a0;
        int a0State = 0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QTime * a0;
        int a0State = 0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_QTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QTime *>(a0),sipType_QTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QDateTime * a0;
        int a0State = 0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QUrl * a0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Nepomuk::Variant * a0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_Nepomuk_Variant, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*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_Variant, sipName_append, NULL);

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &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_Variant, sipName_isValid, NULL);

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->simpleType();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt64();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt64();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDouble();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isString();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDate();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDateTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUrl();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResource();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isIntList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt64List();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedIntList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt64List();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBoolList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDoubleList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isStringList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDateList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isTimeList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDateTimeList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUrlList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResourceList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->variant());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            qlonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt64();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUnsignedInt();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            qulonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUnsignedInt64();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            double sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toDouble();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &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_Variant, sipName_toString, NULL);

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->toDate());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTime(sipCpp->toTime());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->toDateTime());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->toUrl());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            Nepomuk::Resource *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Resource(sipCpp->toResource());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<int> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<int>(sipCpp->toIntList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<uint> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<uint>(sipCpp->toUnsignedIntList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<qreal> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<qreal>(sipCpp->toDoubleList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<QDate> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QDate>(sipCpp->toDateList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<QTime> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QTime>(sipCpp->toTimeList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<QDateTime> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QDateTime>(sipCpp->toDateTimeList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<QUrl> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QUrl>(sipCpp->toUrlList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->toResourceList());
            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_Variant, sipName_toResourceList, NULL);

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<Nepomuk::Variant> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Variant>(sipCpp->toVariantList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1i", sipType_QString,&a0, &a0State, &a1))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(Nepomuk::Variant::fromString(*a0,a1));
            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_Variant, sipName_fromString, NULL);

    return NULL;
}


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

    {
        const Soprano::Node * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Soprano_Node, &a0))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(Nepomuk::Variant::fromNode(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Variant___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Variant___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Variant *sipCpp = reinterpret_cast<Nepomuk::Variant *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Variant));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Variant * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Variant, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Variant::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_Variant,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Variant___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Variant___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Variant *sipCpp = reinterpret_cast<Nepomuk::Variant *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Variant));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Variant * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Variant, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Variant::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_Variant,sipSelf,sipArg);
}


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

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Variant *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Nepomuk_Variant(SIP_SSIZE_T);}
static void *array_Nepomuk_Variant(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Variant[sipNrElem];
}


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


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


extern "C" {static void *init_Nepomuk_Variant(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Variant(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Variant *sipCpp = 0;

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

            return sipCpp;
        }
    }

    {
        const Nepomuk::Variant * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Variant, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QVariant * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            return sipCpp;
        }
    }

    {
        qlonglong a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "n", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        double a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "d", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QDate * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QDate, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            return sipCpp;
        }
    }

    {
        const QTime * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QTime *>(a0),sipType_QTime,a0State);

            return sipCpp;
        }
    }

    {
        const QDateTime * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            return sipCpp;
        }
    }

    {
        const QUrl * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Resource * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QList<int> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_1800,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<int> *>(a0),sipType_QList_1800,a0State);

            return sipCpp;
        }
    }

    {
        const QList<uint> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_1900,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<uint> *>(a0),sipType_QList_1900,a0State);

            return sipCpp;
        }
    }

    {
        const QList<qreal> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_2400,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<qreal> *>(a0),sipType_QList_2400,a0State);

            return sipCpp;
        }
    }

    {
        const QStringList * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            return sipCpp;
        }
    }

    {
        const QList<QDate> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_0100QDate,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QDate> *>(a0),sipType_QList_0100QDate,a0State);

            return sipCpp;
        }
    }

    {
        const QList<QTime> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_0100QTime,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QTime> *>(a0),sipType_QList_0100QTime,a0State);

            return sipCpp;
        }
    }

    {
        const QList<QDateTime> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_0100QDateTime,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QDateTime> *>(a0),sipType_QList_0100QDateTime,a0State);

            return sipCpp;
        }
    }

    {
        const QList<QUrl> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_0100QUrl,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QUrl> *>(a0),sipType_QList_0100QUrl,a0State);

            return sipCpp;
        }
    }

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

            return sipCpp;
        }
    }

    {
        const QList<Nepomuk::Variant> * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QList_0100Nepomuk_Variant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Variant(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Variant> *>(a0),sipType_QList_0100Nepomuk_Variant,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Variant[] = {
    {(void *)slot_Nepomuk_Variant___ne__, ne_slot},
    {(void *)slot_Nepomuk_Variant___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Nepomuk_Variant[] = {
    {SIP_MLNAME_CAST(sipName_append), meth_Nepomuk_Variant_append, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromNode), meth_Nepomuk_Variant_fromNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromString), meth_Nepomuk_Variant_fromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBool), meth_Nepomuk_Variant_isBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBoolList), meth_Nepomuk_Variant_isBoolList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDate), meth_Nepomuk_Variant_isDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDateList), meth_Nepomuk_Variant_isDateList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDateTime), meth_Nepomuk_Variant_isDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDateTimeList), meth_Nepomuk_Variant_isDateTimeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDouble), meth_Nepomuk_Variant_isDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDoubleList), meth_Nepomuk_Variant_isDoubleList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt), meth_Nepomuk_Variant_isInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt64), meth_Nepomuk_Variant_isInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt64List), meth_Nepomuk_Variant_isInt64List, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isIntList), meth_Nepomuk_Variant_isIntList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isList), meth_Nepomuk_Variant_isList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResource), meth_Nepomuk_Variant_isResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResourceList), meth_Nepomuk_Variant_isResourceList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isString), meth_Nepomuk_Variant_isString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isStringList), meth_Nepomuk_Variant_isStringList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTime), meth_Nepomuk_Variant_isTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTimeList), meth_Nepomuk_Variant_isTimeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt), meth_Nepomuk_Variant_isUnsignedInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt64), meth_Nepomuk_Variant_isUnsignedInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt64List), meth_Nepomuk_Variant_isUnsignedInt64List, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedIntList), meth_Nepomuk_Variant_isUnsignedIntList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUrl), meth_Nepomuk_Variant_isUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUrlList), meth_Nepomuk_Variant_isUrlList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Variant_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_simpleType), meth_Nepomuk_Variant_simpleType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toBool), meth_Nepomuk_Variant_toBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDate), meth_Nepomuk_Variant_toDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDateList), meth_Nepomuk_Variant_toDateList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDateTime), meth_Nepomuk_Variant_toDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDateTimeList), meth_Nepomuk_Variant_toDateTimeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDouble), meth_Nepomuk_Variant_toDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDoubleList), meth_Nepomuk_Variant_toDoubleList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt), meth_Nepomuk_Variant_toInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt64), meth_Nepomuk_Variant_toInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toIntList), meth_Nepomuk_Variant_toIntList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toResource), meth_Nepomuk_Variant_toResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toResourceList), meth_Nepomuk_Variant_toResourceList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Nepomuk_Variant_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toStringList), meth_Nepomuk_Variant_toStringList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTime), meth_Nepomuk_Variant_toTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTimeList), meth_Nepomuk_Variant_toTimeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedInt), meth_Nepomuk_Variant_toUnsignedInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedInt64), meth_Nepomuk_Variant_toUnsignedInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedIntList), meth_Nepomuk_Variant_toUnsignedIntList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUrl), meth_Nepomuk_Variant_toUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUrlList), meth_Nepomuk_Variant_toUrlList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toVariantList), meth_Nepomuk_Variant_toVariantList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Nepomuk_Variant_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variant), meth_Nepomuk_Variant_variant, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Variant = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Variant,
        {0}
    },
    {
        sipNameNr_Variant,
        {4, 255, 0},
        54, methods_Nepomuk_Variant,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Variant,
    init_Nepomuk_Variant,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Variant,
    assign_Nepomuk_Variant,
    array_Nepomuk_Variant,
    copy_Nepomuk_Variant,
    release_Nepomuk_Variant,
    cast_Nepomuk_Variant,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/thing.sip"
#include <nepomuk/thing.h>
#line 2398 "sipnepomukpart2.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2402 "sipnepomukpart2.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 2405 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2408 "sipnepomukpart2.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 2411 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2414 "sipnepomukpart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 2417 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 2420 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2423 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 2426 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2429 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 2432 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 2435 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 2438 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 2441 "sipnepomukpart2.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2444 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2447 "sipnepomukpart2.cpp"


class sipNepomuk_Thing : public Nepomuk::Thing
{
public:
    sipNepomuk_Thing(const QUrl&,const QUrl&);
    sipNepomuk_Thing(const QUrl&,const QUrl&,Nepomuk::ResourceManager *);
    sipNepomuk_Thing(const QString&,const QUrl&);
    sipNepomuk_Thing(const QString&,const QUrl&,Nepomuk::ResourceManager *);
    sipNepomuk_Thing(const Nepomuk::Thing&);
    sipNepomuk_Thing(const Nepomuk::Resource&);
    ~sipNepomuk_Thing();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipNepomuk_Thing(const sipNepomuk_Thing &);
    sipNepomuk_Thing &operator = (const sipNepomuk_Thing &);
};

sipNepomuk_Thing::sipNepomuk_Thing(const QUrl& a0,const QUrl& a1): Nepomuk::Thing(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Thing::sipNepomuk_Thing(const QUrl& a0,const QUrl& a1,Nepomuk::ResourceManager *a2): Nepomuk::Thing(a0,a1,a2), sipPySelf(0)
{
}

sipNepomuk_Thing::sipNepomuk_Thing(const QString& a0,const QUrl& a1): Nepomuk::Thing(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Thing::sipNepomuk_Thing(const QString& a0,const QUrl& a1,Nepomuk::ResourceManager *a2): Nepomuk::Thing(a0,a1,a2), sipPySelf(0)
{
}

sipNepomuk_Thing::sipNepomuk_Thing(const Nepomuk::Thing& a0): Nepomuk::Thing(a0), sipPySelf(0)
{
}

sipNepomuk_Thing::sipNepomuk_Thing(const Nepomuk::Resource& a0): Nepomuk::Thing(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Thing *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Thing, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->groundingOccurrences());
            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_Thing, sipName_groundingOccurrences, NULL);

    return NULL;
}


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

    {
        Nepomuk::Thing *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Thing, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->referencingOccurrences());
            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_Thing, sipName_referencingOccurrences, NULL);

    return NULL;
}


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

    {
        Nepomuk::Thing *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Thing, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->occurrences());
            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_Thing, sipName_occurrences, NULL);

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Thing *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Thing, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addGroundingOccurrence(*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_Thing, sipName_addGroundingOccurrence, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Thing)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Resource)->ctd_cast((Nepomuk::Resource *)(Nepomuk::Thing *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Nepomuk_Thing(SIP_SSIZE_T);}
static void *array_Nepomuk_Thing(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Thing[sipNrElem];
}


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


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

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


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

    {
        const QUrl& a0def = QUrl();
        const QUrl * a0 = &a0def;
        const QUrl& a1def = QUrl();
        const QUrl * a1 = &a1def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J9J9", sipType_QUrl, &a0, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Thing(*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_Thing(*a0,*a1,a2);
            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_Thing(*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_Thing(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Thing * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Thing, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Thing(*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_Thing(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Thing[] = {
    {SIP_MLNAME_CAST(sipName_addGroundingOccurrence), meth_Nepomuk_Thing_addGroundingOccurrence, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_groundingOccurrences), meth_Nepomuk_Thing_groundingOccurrences, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_occurrences), meth_Nepomuk_Thing_occurrences, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_referencingOccurrences), meth_Nepomuk_Thing_referencingOccurrences, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Thing = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Thing,
        {0}
    },
    {
        sipNameNr_Thing,
        {4, 255, 0},
        4, methods_Nepomuk_Thing,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Thing,
    0,
    init_Nepomuk_Thing,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Thing,
    assign_Nepomuk_Thing,
    array_Nepomuk_Thing,
    copy_Nepomuk_Thing,
    release_Nepomuk_Thing,
    cast_Nepomuk_Thing,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/tagwidget.sip"
#include <nepomuk/tagwidget.h>
#line 2848 "sipnepomukpart2.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/tagwidget.sip"
#include <nepomuk/tagwidget.h>
#line 2852 "sipnepomukpart2.cpp"


extern "C" {static int slot_Nepomuk_TagWidget_ModeFlags___bool__(PyObject *);}
static int slot_Nepomuk_TagWidget_ModeFlags___bool__(PyObject *sipSelf)
{
    Nepomuk::TagWidget::ModeFlags *sipCpp = reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_TagWidget_ModeFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 2870 "sipnepomukpart2.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Nepomuk_TagWidget_ModeFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::TagWidget::ModeFlags *sipCpp = reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_TagWidget_ModeFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 2898 "sipnepomukpart2.cpp"
            sipReleaseType(const_cast<Nepomuk::TagWidget::ModeFlags *>(a0),sipType_Nepomuk_TagWidget_ModeFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,ne_slot,sipType_Nepomuk_TagWidget_ModeFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_TagWidget_ModeFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::TagWidget::ModeFlags *sipCpp = reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_TagWidget_ModeFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 2934 "sipnepomukpart2.cpp"
            sipReleaseType(const_cast<Nepomuk::TagWidget::ModeFlags *>(a0),sipType_Nepomuk_TagWidget_ModeFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,eq_slot,sipType_Nepomuk_TagWidget_ModeFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_TagWidget_ModeFlags___invert__(PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___invert__(PyObject *sipSelf)
{
    Nepomuk::TagWidget::ModeFlags *sipCpp = reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_TagWidget_ModeFlags));

    if (!sipCpp)
        return 0;


    {
        {
            Nepomuk::TagWidget::ModeFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::TagWidget::ModeFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


extern "C" {static PyObject *slot_Nepomuk_TagWidget_ModeFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State, &a1))
        {
            Nepomuk::TagWidget::ModeFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::TagWidget::ModeFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_TagWidget_ModeFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_TagWidget_ModeFlags,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_TagWidget_ModeFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;
        Nepomuk::TagWidget::ModeFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State, sipType_Nepomuk_TagWidget_ModeFlags, &a1, &a1State))
        {
            Nepomuk::TagWidget::ModeFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::TagWidget::ModeFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_TagWidget_ModeFlags,a0State);
            sipReleaseType(a1,sipType_Nepomuk_TagWidget_ModeFlags,a1State);

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

    {
        Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State, &a1))
        {
            Nepomuk::TagWidget::ModeFlags *sipRes = 0;

#line 320 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::TagWidget::ModeFlags(*a0 ^ a1);
#line 3041 "sipnepomukpart2.cpp"
            sipReleaseType(a0,sipType_Nepomuk_TagWidget_ModeFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_TagWidget_ModeFlags,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_TagWidget_ModeFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;
        Nepomuk::TagWidget::ModeFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State, sipType_Nepomuk_TagWidget_ModeFlags, &a1, &a1State))
        {
            Nepomuk::TagWidget::ModeFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::TagWidget::ModeFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_TagWidget_ModeFlags,a0State);
            sipReleaseType(a1,sipType_Nepomuk_TagWidget_ModeFlags,a1State);

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

    {
        Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State, &a1))
        {
            Nepomuk::TagWidget::ModeFlags *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::TagWidget::ModeFlags(*a0 | a1);
#line 3093 "sipnepomukpart2.cpp"
            sipReleaseType(a0,sipType_Nepomuk_TagWidget_ModeFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_TagWidget_ModeFlags,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_TagWidget_ModeFlags___int__(PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___int__(PyObject *sipSelf)
{
    Nepomuk::TagWidget::ModeFlags *sipCpp = reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_TagWidget_ModeFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


extern "C" {static PyObject *slot_Nepomuk_TagWidget_ModeFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Nepomuk_TagWidget_ModeFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Nepomuk::TagWidget::ModeFlags *sipCpp = reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_TagWidget_ModeFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::TagWidget::ModeFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_TagWidget_ModeFlags,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_TagWidget_ModeFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Nepomuk_TagWidget_ModeFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Nepomuk::TagWidget::ModeFlags *sipCpp = reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_TagWidget_ModeFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::TagWidget::ModeFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_TagWidget_ModeFlags,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_TagWidget_ModeFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_TagWidget_ModeFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Nepomuk_TagWidget_ModeFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Nepomuk::TagWidget::ModeFlags *sipCpp = reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_TagWidget_ModeFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::TagWidget::ModeFlags::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_TagWidget_ModeFlags(void *, const sipTypeDef *);}
static void *cast_Nepomuk_TagWidget_ModeFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Nepomuk_TagWidget_ModeFlags)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_TagWidget_ModeFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_TagWidget_ModeFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::TagWidget::ModeFlags *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_TagWidget_ModeFlags(SIP_SSIZE_T);}
static void *array_Nepomuk_TagWidget_ModeFlags(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::TagWidget::ModeFlags[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_TagWidget_ModeFlags(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_TagWidget_ModeFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::TagWidget::ModeFlags(reinterpret_cast<const Nepomuk::TagWidget::ModeFlags *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_Nepomuk_TagWidget_ModeFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_TagWidget_ModeFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::TagWidget::ModeFlags *sipCpp = 0;

    {
        const Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::TagWidget::ModeFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Nepomuk::TagWidget::ModeFlags *>(a0),sipType_Nepomuk_TagWidget_ModeFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::TagWidget::ModeFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::TagWidget::ModeFlags();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Nepomuk_TagWidget_ModeFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_Nepomuk_TagWidget_ModeFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Nepomuk::TagWidget::ModeFlags **sipCppPtr = reinterpret_cast<Nepomuk::TagWidget::ModeFlags **>(sipCppPtrV);

#line 341 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Nepomuk::TagWidget::ModeFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_TagWidget_ModeFlag)) ||
            sipCanConvertToType(sipPy, sipType_Nepomuk_TagWidget_ModeFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_TagWidget_ModeFlag)))
{
    *sipCppPtr = new Nepomuk::TagWidget::ModeFlags(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Nepomuk::TagWidget::ModeFlags *>(sipConvertToType(sipPy, sipType_Nepomuk_TagWidget_ModeFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 3386 "sipnepomukpart2.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_TagWidget_ModeFlags[] = {
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___bool__, bool_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___ne__, ne_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___eq__, eq_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___invert__, invert_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___and__, and_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___xor__, xor_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___or__, or_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___int__, int_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___ixor__, ixor_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___ior__, ior_slot},
    {(void *)slot_Nepomuk_TagWidget_ModeFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_TagWidget_ModeFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__TagWidget__ModeFlags,
        {0}
    },
    {
        sipNameNr_ModeFlags,
        {39, 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_TagWidget_ModeFlags,
    init_Nepomuk_TagWidget_ModeFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_TagWidget_ModeFlags,
    assign_Nepomuk_TagWidget_ModeFlags,
    array_Nepomuk_TagWidget_ModeFlags,
    copy_Nepomuk_TagWidget_ModeFlags,
    release_Nepomuk_TagWidget_ModeFlags,
    cast_Nepomuk_TagWidget_ModeFlags,
    convertTo_Nepomuk_TagWidget_ModeFlags,
    0,
    0
},
    0,
    1,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/tagwidget.sip"
#include <nepomuk/tagwidget.h>
#line 3459 "sipnepomukpart2.cpp"

#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 3463 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3466 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/tagwidget.sip"
#include <nepomuk/tagwidget.h>
#line 3469 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3472 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3475 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 3478 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3481 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3484 "sipnepomukpart2.cpp"
#line 44 "/usr/local/share/py-sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 3487 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3490 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3493 "sipnepomukpart2.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 3496 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 3499 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3502 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 3505 "sipnepomukpart2.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 3508 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 3511 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qregion.sip"
#include <qregion.h>
#line 3514 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 3517 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 611 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 3522 "sipnepomukpart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3525 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 3528 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 3531 "sipnepomukpart2.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 3534 "sipnepomukpart2.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 3537 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 3540 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3543 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 3546 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3549 "sipnepomukpart2.cpp"
#line 504 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 522 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3554 "sipnepomukpart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3557 "sipnepomukpart2.cpp"
#line 464 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3560 "sipnepomukpart2.cpp"
#line 453 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3563 "sipnepomukpart2.cpp"
#line 547 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3566 "sipnepomukpart2.cpp"
#line 598 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3569 "sipnepomukpart2.cpp"
#line 571 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3572 "sipnepomukpart2.cpp"
#line 587 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3575 "sipnepomukpart2.cpp"
#line 650 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3578 "sipnepomukpart2.cpp"
#line 296 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3581 "sipnepomukpart2.cpp"
#line 475 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3584 "sipnepomukpart2.cpp"
#line 431 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3587 "sipnepomukpart2.cpp"
#line 418 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3590 "sipnepomukpart2.cpp"
#line 405 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3593 "sipnepomukpart2.cpp"
#line 391 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3596 "sipnepomukpart2.cpp"
#line 372 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3599 "sipnepomukpart2.cpp"
#line 344 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3602 "sipnepomukpart2.cpp"
#line 275 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3605 "sipnepomukpart2.cpp"
#line 236 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 3608 "sipnepomukpart2.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 3611 "sipnepomukpart2.cpp"
#line 66 "/usr/local/share/py-sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 3614 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 3617 "sipnepomukpart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3620 "sipnepomukpart2.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 3623 "sipnepomukpart2.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qlayout.sip"
#include <qlayout.h>
#line 3626 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 3629 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3632 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 3635 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 3638 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 3641 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 3644 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qstyle.sip"
#include <qstyle.h>
#line 3647 "sipnepomukpart2.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3650 "sipnepomukpart2.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3653 "sipnepomukpart2.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3656 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3659 "sipnepomukpart2.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3662 "sipnepomukpart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3665 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3668 "sipnepomukpart2.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3671 "sipnepomukpart2.cpp"


class sipNepomuk_TagWidget : public Nepomuk::TagWidget
{
public:
    sipNepomuk_TagWidget(const Nepomuk::Resource&,QWidget *);
    sipNepomuk_TagWidget(QWidget *);
    virtual ~sipNepomuk_TagWidget();

    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_resizeEvent(bool,QResizeEvent *);
    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);

    /*
     * 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_TagWidget(const sipNepomuk_TagWidget &);
    sipNepomuk_TagWidget &operator = (const sipNepomuk_TagWidget &);

    char sipPyMethods[47];
};

sipNepomuk_TagWidget::sipNepomuk_TagWidget(const Nepomuk::Resource& a0,QWidget *a1): Nepomuk::TagWidget(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

const QMetaObject *sipNepomuk_TagWidget::metaObject() const
{
    return sip_nepomuk_qt_metaobject(sipPySelf,sipType_Nepomuk_TagWidget);
}

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

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

    return _id;
}

void *sipNepomuk_TagWidget::qt_metacast(const char *_clname)
{
    return (sip_nepomuk_qt_metacast && sip_nepomuk_qt_metacast(sipPySelf,sipType_Nepomuk_TagWidget,_clname)) ? this : Nepomuk::TagWidget::qt_metacast(_clname);
}

int sipNepomuk_TagWidget::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

QSize sipNepomuk_TagWidget::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

QSize sipNepomuk_TagWidget::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

int sipNepomuk_TagWidget::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        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,meth,a0);
}

QPaintEngine * sipNepomuk_TagWidget::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

bool sipNepomuk_TagWidget::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        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,meth,a0);
}

void sipNepomuk_TagWidget::mousePressEvent(QMouseEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::mouseReleaseEvent(QMouseEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::mouseDoubleClickEvent(QMouseEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::mouseMoveEvent(QMouseEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::wheelEvent(QWheelEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::keyPressEvent(QKeyEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::keyReleaseEvent(QKeyEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::focusInEvent(QFocusEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::focusOutEvent(QFocusEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::enterEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::leaveEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::paintEvent(QPaintEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::moveEvent(QMoveEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::resizeEvent(QResizeEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::closeEvent(QCloseEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::contextMenuEvent(QContextMenuEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::tabletEvent(QTabletEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::actionEvent(QActionEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::dragEnterEvent(QDragEnterEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::dragMoveEvent(QDragMoveEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::dragLeaveEvent(QDragLeaveEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::dropEvent(QDropEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::showEvent(QShowEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::hideEvent(QHideEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::changeEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

int sipNepomuk_TagWidget::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        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,meth,a0);
}

void sipNepomuk_TagWidget::inputMethodEvent(QInputMethodEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

QVariant sipNepomuk_TagWidget::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        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,meth,a0);
}

bool sipNepomuk_TagWidget::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        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,meth,a0);
}

void sipNepomuk_TagWidget::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::paletteChange(const QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        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,meth,a0);
}

void sipNepomuk_TagWidget::fontChange(const QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        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,meth,a0);
}

void sipNepomuk_TagWidget::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

    if (!meth)
        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,meth,a0,a1);
}

void sipNepomuk_TagWidget::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipNepomuk_TagWidget::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        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,meth,a0);
}

void sipNepomuk_TagWidget::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        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,meth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipNepomuk_TagWidget *sipCpp;

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

#line 529 "/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 4913 "sipnepomukpart2.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_TagWidget *sipCpp;

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

#line 546 "/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 4955 "sipnepomukpart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QMouseEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QWheelEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QKeyEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QFocusEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QPaintEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QMoveEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QResizeEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QCloseEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QContextMenuEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QTabletEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QActionEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QDragEnterEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QDragMoveEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QDragLeaveEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QDropEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QShowEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QHideEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QPaintDevice::PaintDeviceMetric a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        QInputMethodEvent * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|mbb", &sipSelf, sipType_Nepomuk_TagWidget, &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_TagWidget, sipName_create, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "B|bb", &sipSelf, sipType_Nepomuk_TagWidget, &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_TagWidget, sipName_destroy, NULL);

    return NULL;
}


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

    {
        bool a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        const QPalette * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        const QFont * a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        sipNepomuk_TagWidget *sipCpp;

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

    return NULL;
}


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

    {
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->taggedResources());
            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_TagWidget, sipName_taggedResources, NULL);

    return NULL;
}


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

    {
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp))
        {
            QList<Nepomuk::Tag> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Tag>(sipCpp->assignedTags());
            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_TagWidget, sipName_assignedTags, NULL);

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTaggedResource(*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_TagWidget, sipName_setTaggedResource, NULL);

    return NULL;
}


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

    {
        const QList<Nepomuk::Resource> * a0;
        int a0State = 0;
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp, sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTaggedResources(*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_TagWidget, sipName_setTaggedResources, NULL);

    return NULL;
}


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

    {
        const QList<Nepomuk::Tag> * a0;
        int a0State = 0;
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp, sipType_QList_0100Nepomuk_Tag,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAssignedTags(*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_TagWidget, sipName_setAssignedTags, NULL);

    return NULL;
}


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

    {
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp))
        {
            QList<Nepomuk::Tag> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Tag>(sipCpp->selectedTags());
            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_TagWidget, sipName_selectedTags, NULL);

    return NULL;
}


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

    {
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maxTagsShown();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp))
        {
            Qt::Alignment *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Qt::Alignment(sipCpp->alignment());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp))
        {
            Nepomuk::TagWidget::ModeFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::TagWidget::ModeFlags(sipCpp->modeFlags());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QList<Nepomuk::Tag> * a0;
        int a0State = 0;
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp, sipType_QList_0100Nepomuk_Tag,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectedTags(*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_TagWidget, sipName_setSelectedTags, NULL);

    return NULL;
}


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

    {
        int a0;
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaxTagsShown(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_TagWidget, sipName_setMaxTagsShown, NULL);

    return NULL;
}


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

    {
        Qt::Alignment * a0;
        int a0State = 0;
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp, sipType_Qt_Alignment, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAlignment(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Qt_Alignment,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::TagWidget::ModeFlags * a0;
        int a0State = 0;
        Nepomuk::TagWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_TagWidget, &sipCpp, sipType_Nepomuk_TagWidget_ModeFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setModeFlags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_TagWidget_ModeFlags,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_TagWidget)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const Nepomuk::Resource * a0;
        QWidget * a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QWidget * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_TagWidget[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), meth_Nepomuk_TagWidget_actionEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_alignment), meth_Nepomuk_TagWidget_alignment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_assignedTags), meth_Nepomuk_TagWidget_assignedTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), meth_Nepomuk_TagWidget_changeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Nepomuk_TagWidget_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), meth_Nepomuk_TagWidget_closeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Nepomuk_TagWidget_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_Nepomuk_TagWidget_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_Nepomuk_TagWidget_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Nepomuk_TagWidget_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), meth_Nepomuk_TagWidget_destroy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Nepomuk_TagWidget_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), meth_Nepomuk_TagWidget_dragEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_Nepomuk_TagWidget_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_Nepomuk_TagWidget_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_Nepomuk_TagWidget_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enabledChange), meth_Nepomuk_TagWidget_enabledChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), meth_Nepomuk_TagWidget_enterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_Nepomuk_TagWidget_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), meth_Nepomuk_TagWidget_focusInEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), meth_Nepomuk_TagWidget_focusNextChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), meth_Nepomuk_TagWidget_focusNextPrevChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), meth_Nepomuk_TagWidget_focusOutEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), meth_Nepomuk_TagWidget_focusPreviousChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontChange), meth_Nepomuk_TagWidget_fontChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), meth_Nepomuk_TagWidget_hideEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), meth_Nepomuk_TagWidget_inputMethodEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), meth_Nepomuk_TagWidget_keyPressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), meth_Nepomuk_TagWidget_keyReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageChange), meth_Nepomuk_TagWidget_languageChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), meth_Nepomuk_TagWidget_leaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxTagsShown), meth_Nepomuk_TagWidget_maxTagsShown, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), meth_Nepomuk_TagWidget_metric, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modeFlags), meth_Nepomuk_TagWidget_modeFlags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), meth_Nepomuk_TagWidget_mouseDoubleClickEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), meth_Nepomuk_TagWidget_mouseMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), meth_Nepomuk_TagWidget_mousePressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), meth_Nepomuk_TagWidget_mouseReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), meth_Nepomuk_TagWidget_moveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), meth_Nepomuk_TagWidget_paintEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paletteChange), meth_Nepomuk_TagWidget_paletteChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Nepomuk_TagWidget_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetInputContext), meth_Nepomuk_TagWidget_resetInputContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), meth_Nepomuk_TagWidget_resizeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedTags), meth_Nepomuk_TagWidget_selectedTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Nepomuk_TagWidget_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAlignment), meth_Nepomuk_TagWidget_setAlignment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAssignedTags), meth_Nepomuk_TagWidget_setAssignedTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaxTagsShown), meth_Nepomuk_TagWidget_setMaxTagsShown, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setModeFlags), meth_Nepomuk_TagWidget_setModeFlags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectedTags), meth_Nepomuk_TagWidget_setSelectedTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTaggedResource), meth_Nepomuk_TagWidget_setTaggedResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTaggedResources), meth_Nepomuk_TagWidget_setTaggedResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), meth_Nepomuk_TagWidget_showEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), meth_Nepomuk_TagWidget_tabletEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_taggedResources), meth_Nepomuk_TagWidget_taggedResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Nepomuk_TagWidget_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), meth_Nepomuk_TagWidget_updateMicroFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), meth_Nepomuk_TagWidget_wheelEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowActivationChange), meth_Nepomuk_TagWidget_windowActivationChange, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_TagWidget[] = {
    {sipName_DisableTagClicking, Nepomuk::TagWidget::DisableTagClicking, 40},
    {sipName_MiniMode, Nepomuk::TagWidget::MiniMode, 40},
    {sipName_ReadOnly, Nepomuk::TagWidget::ReadOnly, 40},
    {sipName_StandardMode, Nepomuk::TagWidget::StandardMode, 40},
};


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


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_TagWidget = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__TagWidget,
        {0}
    },
    {
        sipNameNr_TagWidget,
        {4, 255, 0},
        60, methods_Nepomuk_TagWidget,
        4, enummembers_Nepomuk_TagWidget,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_TagWidget,
    0,
    init_Nepomuk_TagWidget,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_TagWidget,
    0,
    0,
    0,
    release_Nepomuk_TagWidget,
    cast_Nepomuk_TagWidget,
    0,
    0,
    0
},
    &Nepomuk::TagWidget::staticMetaObject,
    0,
    pyqt4_signals_Nepomuk_TagWidget
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 6805 "sipnepomukpart2.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 6809 "sipnepomukpart2.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 6812 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6815 "sipnepomukpart2.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 6818 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6821 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6824 "sipnepomukpart2.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 6827 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 6830 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6833 "sipnepomukpart2.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/thing.sip"
#include <nepomuk/thing.h>
#line 6836 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 6839 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 6842 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 6845 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 6848 "sipnepomukpart2.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6851 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6854 "sipnepomukpart2.cpp"


class sipNepomuk_Tag : public Nepomuk::Tag
{
public:
    sipNepomuk_Tag();
    sipNepomuk_Tag(Nepomuk::ResourceManager *);
    sipNepomuk_Tag(const Nepomuk::Tag&);
    sipNepomuk_Tag(const Nepomuk::Resource&);
    sipNepomuk_Tag(const QString&);
    sipNepomuk_Tag(const QString&,Nepomuk::ResourceManager *);
    sipNepomuk_Tag(const QUrl&);
    sipNepomuk_Tag(const QUrl&,Nepomuk::ResourceManager *);
    sipNepomuk_Tag(const QString&,const QUrl&);
    sipNepomuk_Tag(const QUrl&,const QUrl&);
    sipNepomuk_Tag(const QString&,const QUrl&,Nepomuk::ResourceManager *);
    sipNepomuk_Tag(const QUrl&,const QUrl&,Nepomuk::ResourceManager *);
    ~sipNepomuk_Tag();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipNepomuk_Tag(const sipNepomuk_Tag &);
    sipNepomuk_Tag &operator = (const sipNepomuk_Tag &);
};

sipNepomuk_Tag::sipNepomuk_Tag(): Nepomuk::Tag(), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(Nepomuk::ResourceManager *a0): Nepomuk::Tag(a0), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const Nepomuk::Tag& a0): Nepomuk::Tag(a0), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const Nepomuk::Resource& a0): Nepomuk::Tag(a0), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QString& a0): Nepomuk::Tag(a0), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QString& a0,Nepomuk::ResourceManager *a1): Nepomuk::Tag(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QUrl& a0): Nepomuk::Tag(a0), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QUrl& a0,Nepomuk::ResourceManager *a1): Nepomuk::Tag(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QString& a0,const QUrl& a1): Nepomuk::Tag(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QUrl& a0,const QUrl& a1): Nepomuk::Tag(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QString& a0,const QUrl& a1,Nepomuk::ResourceManager *a2): Nepomuk::Tag(a0,a1,a2), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QUrl& a0,const QUrl& a1,Nepomuk::ResourceManager *a2): Nepomuk::Tag(a0,a1,a2), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Tag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Tag, &sipCpp))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->tagOf());
            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_Tag, sipName_tagOf, NULL);

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<Nepomuk::Tag> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Tag>(Nepomuk::Tag::allTags());
            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_Tag, sipName_allTags, NULL);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Tag::resourceTypeUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Tag)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Resource)->ctd_cast((Nepomuk::Resource *)(Nepomuk::Tag *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Nepomuk_Tag(SIP_SSIZE_T);}
static void *array_Nepomuk_Tag(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Tag[sipNrElem];
}


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


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

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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag();
            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_Tag(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Tag * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Tag, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*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_Tag(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::ResourceManager * a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J8", sipType_QString,&a0, &a0State, sipType_Nepomuk_ResourceManager, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;
        Nepomuk::ResourceManager * a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J8", sipType_QUrl, &a0, sipType_Nepomuk_ResourceManager, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J9", sipType_QString,&a0, &a0State, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;
        const QUrl * a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9", sipType_QUrl, &a0, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,*a1);
            Py_END_ALLOW_THREADS

            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_Tag(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            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_Tag(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Tag[] = {
    {SIP_MLNAME_CAST(sipName_allTags), meth_Nepomuk_Tag_allTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceTypeUri), meth_Nepomuk_Tag_resourceTypeUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagOf), meth_Nepomuk_Tag_tagOf, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Tag = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Tag,
        {0}
    },
    {
        sipNameNr_Tag,
        {4, 255, 0},
        3, methods_Nepomuk_Tag,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Tag,
    0,
    init_Nepomuk_Tag,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Tag,
    assign_Nepomuk_Tag,
    array_Nepomuk_Tag,
    copy_Nepomuk_Tag,
    release_Nepomuk_Tag,
    cast_Nepomuk_Tag,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/result.sip"
#include <nepomuk/result.h>
#line 7344 "sipnepomukpart2.cpp"

#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 7348 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 7351 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7354 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 7357 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 7360 "sipnepomukpart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 7363 "sipnepomukpart2.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 7366 "sipnepomukpart2.cpp"


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

    {
        Nepomuk::Query::Result *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Result, &sipCpp))
        {
            double sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->score();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::Result *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Result, &sipCpp))
        {
            Nepomuk::Resource *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Resource(sipCpp->resource());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        double a0;
        Nepomuk::Query::Result *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_Nepomuk_Query_Result, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setScore(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_Result, sipName_setScore, NULL);

    return NULL;
}


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

    {
        const Nepomuk::Types::Property * a0;
        const Soprano::Node * a1;
        Nepomuk::Query::Result *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_Query_Result, &sipCpp, sipType_Nepomuk_Types_Property, &a0, sipType_Soprano_Node, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addRequestProperty(*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_Result, sipName_addRequestProperty, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::Result *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Result, &sipCpp))
        {
            QHash<Nepomuk::Types::Property,Soprano::Node> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<Nepomuk::Types::Property,Soprano::Node>(sipCpp->requestProperties());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Nepomuk::Types::Property * a0;
        Nepomuk::Query::Result *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_Result, &sipCpp, sipType_Nepomuk_Types_Property, &a0))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->requestProperty(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Soprano::BindingSet * a0;
        Nepomuk::Query::Result *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_Result, &sipCpp, sipType_Soprano_BindingSet, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAdditionalBindings(*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_Result, sipName_setAdditionalBindings, NULL);

    return NULL;
}


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

    {
        Nepomuk::Query::Result *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Result, &sipCpp))
        {
            Soprano::BindingSet *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BindingSet(sipCpp->additionalBindings());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Query::Result *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_Result, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(sipCpp->additionalBinding(*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_Result, sipName_additionalBinding, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Query_Result___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Result___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Result *sipCpp = reinterpret_cast<Nepomuk::Query::Result *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Result));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Result * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Result, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Nepomuk::Query::Result::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_Result,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Query_Result___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Result___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Result *sipCpp = reinterpret_cast<Nepomuk::Query::Result *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Result));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Result * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Result, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Query::Result::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_Result,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Query_Result___getitem__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Result___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Result *sipCpp = reinterpret_cast<Nepomuk::Query::Result *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Result));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Types::Property * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Types_Property, &a0))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node((*sipCpp)[*a0]);
            Py_END_ALLOW_THREADS

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

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

    return 0;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Query::Result *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_Result(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_Result(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::Result *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::Result *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_Result(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_Result(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::Result[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_Result(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_Result(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::Result(reinterpret_cast<const Nepomuk::Query::Result *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_Nepomuk_Query_Result(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_Result(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Query::Result *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Result();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Resource * a0;
        double a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|d", sipType_Nepomuk_Resource, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Result(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Result * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_Result, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Result(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Query_Result[] = {
    {(void *)slot_Nepomuk_Query_Result___ne__, ne_slot},
    {(void *)slot_Nepomuk_Query_Result___eq__, eq_slot},
    {(void *)slot_Nepomuk_Query_Result___getitem__, getitem_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Nepomuk_Query_Result[] = {
    {SIP_MLNAME_CAST(sipName_addRequestProperty), meth_Nepomuk_Query_Result_addRequestProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_additionalBinding), meth_Nepomuk_Query_Result_additionalBinding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_additionalBindings), meth_Nepomuk_Query_Result_additionalBindings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestProperties), meth_Nepomuk_Query_Result_requestProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_requestProperty), meth_Nepomuk_Query_Result_requestProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resource), meth_Nepomuk_Query_Result_resource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_score), meth_Nepomuk_Query_Result_score, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAdditionalBindings), meth_Nepomuk_Query_Result_setAdditionalBindings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setScore), meth_Nepomuk_Query_Result_setScore, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Result = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Result,
        {0}
    },
    {
        sipNameNr_Result,
        {7, 255, 0},
        9, methods_Nepomuk_Query_Result,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_Result,
    init_Nepomuk_Query_Result,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Result,
    assign_Nepomuk_Query_Result,
    array_Nepomuk_Query_Result,
    copy_Nepomuk_Query_Result,
    release_Nepomuk_Query_Result,
    cast_Nepomuk_Query_Result,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 7892 "sipnepomukpart2.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 7896 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 7899 "sipnepomukpart2.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7902 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 7905 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 7908 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 7911 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 7914 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 7917 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 7920 "sipnepomukpart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 7923 "sipnepomukpart2.cpp"


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

    {
        Nepomuk::Query::ResourceTypeTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ResourceTypeTerm, &sipCpp))
        {
            Nepomuk::Types::Class *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Class(sipCpp->type());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Nepomuk::Types::Class * a0;
        Nepomuk::Query::ResourceTypeTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_ResourceTypeTerm, &sipCpp, sipType_Nepomuk_Types_Class, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setType(*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_ResourceTypeTerm, sipName_setType, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_ResourceTypeTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_Term)->ctd_cast((Nepomuk::Query::Term *)(Nepomuk::Query::ResourceTypeTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Query::ResourceTypeTerm *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Query_ResourceTypeTerm(void *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Query_ResourceTypeTerm(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Query::ResourceTypeTerm *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Query::ResourceTypeTerm *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Query_ResourceTypeTerm(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_ResourceTypeTerm(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::ResourceTypeTerm[sipNrElem];
}


extern "C" {static void *copy_Nepomuk_Query_ResourceTypeTerm(const void *, SIP_SSIZE_T);}
static void *copy_Nepomuk_Query_ResourceTypeTerm(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Nepomuk::Query::ResourceTypeTerm(reinterpret_cast<const Nepomuk::Query::ResourceTypeTerm *>(sipSrc)[sipSrcIdx]);
}


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


extern "C" {static void *init_Nepomuk_Query_ResourceTypeTerm(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_ResourceTypeTerm(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Query::ResourceTypeTerm *sipCpp = 0;

    {
        const Nepomuk::Query::ResourceTypeTerm * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_ResourceTypeTerm, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::ResourceTypeTerm(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Types::Class& a0def = Nepomuk::Types::Class();
        const Nepomuk::Types::Class * a0 = &a0def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J9", sipType_Nepomuk_Types_Class, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::ResourceTypeTerm(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_ResourceTypeTerm[] = {
    {SIP_MLNAME_CAST(sipName_setType), meth_Nepomuk_Query_ResourceTypeTerm_setType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Nepomuk_Query_ResourceTypeTerm_type, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_ResourceTypeTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__ResourceTypeTerm,
        {0}
    },
    {
        sipNameNr_ResourceTypeTerm,
        {7, 255, 0},
        2, methods_Nepomuk_Query_ResourceTypeTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_ResourceTypeTerm,
    0,
    init_Nepomuk_Query_ResourceTypeTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_ResourceTypeTerm,
    assign_Nepomuk_Query_ResourceTypeTerm,
    array_Nepomuk_Query_ResourceTypeTerm,
    copy_Nepomuk_Query_ResourceTypeTerm,
    release_Nepomuk_Query_ResourceTypeTerm,
    cast_Nepomuk_Query_ResourceTypeTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};
