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

#include "sipAPInepomuk.h"

#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 12 "sipnepomukpart3.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 16 "sipnepomukpart3.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 19 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "sipnepomukpart3.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 25 "sipnepomukpart3.cpp"
#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 28 "sipnepomukpart3.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 31 "sipnepomukpart3.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 34 "sipnepomukpart3.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 37 "sipnepomukpart3.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 40 "sipnepomukpart3.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 43 "sipnepomukpart3.cpp"


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

    {
        Nepomuk::Query::ResourceTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_ResourceTerm, &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_ResourceTerm, sipName_resource, NULL);

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Query::ResourceTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_ResourceTerm, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResource(*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_ResourceTerm, sipName_setResource, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_ResourceTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_Term)->ctd_cast((Nepomuk::Query::Term *)(Nepomuk::Query::ResourceTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Query::ResourceTerm *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Nepomuk_Query_ResourceTerm(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_ResourceTerm(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::ResourceTerm[sipNrElem];
}


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


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


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

    {
        const Nepomuk::Query::ResourceTerm * a0;

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

            return sipCpp;
        }
    }

    {
        const Nepomuk::Resource& a0def = Nepomuk::Resource();
        const Nepomuk::Resource * a0 = &a0def;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_ResourceTerm[] = {
    {SIP_MLNAME_CAST(sipName_resource), meth_Nepomuk_Query_ResourceTerm_resource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResource), meth_Nepomuk_Query_ResourceTerm_setResource, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_ResourceTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__ResourceTerm,
        {0}
    },
    {
        sipNameNr_ResourceTerm,
        {7, 255, 0},
        2, methods_Nepomuk_Query_ResourceTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_ResourceTerm,
    0,
    init_Nepomuk_Query_ResourceTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_ResourceTerm,
    assign_Nepomuk_Query_ResourceTerm,
    array_Nepomuk_Query_ResourceTerm,
    copy_Nepomuk_Query_ResourceTerm,
    release_Nepomuk_Query_ResourceTerm,
    cast_Nepomuk_Query_ResourceTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#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 257 "sipnepomukpart3.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 261 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 264 "sipnepomukpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 267 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 270 "sipnepomukpart3.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 273 "sipnepomukpart3.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 276 "sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 279 "sipnepomukpart3.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 282 "sipnepomukpart3.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 285 "sipnepomukpart3.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 288 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 291 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 294 "sipnepomukpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 297 "sipnepomukpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 300 "sipnepomukpart3.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 303 "sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 306 "sipnepomukpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 309 "sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 312 "sipnepomukpart3.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Nepomuk::ResourceManager *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::ResourceManager::instance();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->init();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->initialized();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Nepomuk::Resource *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Resource(sipCpp->createResourceFromUri(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_QUrl, &a0))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->allResourcesOfType(*a0));
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->allResourcesOfType(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_QUrl, &a0, sipType_Nepomuk_Variant, &a1))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->allResourcesWithProperty(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_QString,&a0, &a0State, sipType_Nepomuk_Variant, &a1))
        {
            QList<Nepomuk::Resource> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->allResourcesWithProperty(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->generateUniqueUri());
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->generateUniqueUri(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->notifyError(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp))
        {
            Soprano::Model *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->mainModel();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Model * a0;
        Nepomuk::ResourceManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_Soprano_Model, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOverrideMainModel(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_ResourceManager, sipName_setOverrideMainModel, NULL);

    return NULL;
}


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

    {
        Soprano::Model * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_Soprano_Model, &a0))
        {
            Nepomuk::ResourceManager *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::ResourceManager::createManagerForModel(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_ResourceManager)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(Nepomuk::ResourceManager *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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


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


static PyMethodDef methods_Nepomuk_ResourceManager[] = {
    {SIP_MLNAME_CAST(sipName_allResourcesOfType), meth_Nepomuk_ResourceManager_allResourcesOfType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allResourcesWithProperty), meth_Nepomuk_ResourceManager_allResourcesWithProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearCache), meth_Nepomuk_ResourceManager_clearCache, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createManagerForModel), meth_Nepomuk_ResourceManager_createManagerForModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createResourceFromUri), meth_Nepomuk_ResourceManager_createResourceFromUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteInstance), meth_Nepomuk_ResourceManager_deleteInstance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_generateUniqueUri), meth_Nepomuk_ResourceManager_generateUniqueUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_init), meth_Nepomuk_ResourceManager_init, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_initialized), meth_Nepomuk_ResourceManager_initialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_instance), meth_Nepomuk_ResourceManager_instance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mainModel), meth_Nepomuk_ResourceManager_mainModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_notifyError), meth_Nepomuk_ResourceManager_notifyError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeResource), meth_Nepomuk_ResourceManager_removeResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOverrideMainModel), meth_Nepomuk_ResourceManager_setOverrideMainModel, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Nepomuk_ResourceManager[] = {
    {"nepomukSystemStopped()", 0, 0},
    {"nepomukSystemStarted()", 0, 0},
    {"error(QString,int)", 0, 0},
    {"resourceModified(QString)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_ResourceManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__ResourceManager,
        {0}
    },
    {
        sipNameNr_ResourceManager,
        {4, 255, 0},
        14, methods_Nepomuk_ResourceManager,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_ResourceManager,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_Nepomuk_ResourceManager,
    cast_Nepomuk_ResourceManager,
    0,
    0,
    0
},
    &Nepomuk::ResourceManager::staticMetaObject,
    0,
    pyqt4_signals_Nepomuk_ResourceManager
};

#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 862 "sipnepomukpart3.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 866 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 869 "sipnepomukpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 872 "sipnepomukpart3.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 875 "sipnepomukpart3.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 878 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 881 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 884 "sipnepomukpart3.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 887 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 890 "sipnepomukpart3.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 893 "sipnepomukpart3.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 896 "sipnepomukpart3.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 899 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 902 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 905 "sipnepomukpart3.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 908 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 911 "sipnepomukpart3.cpp"


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

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Resource::sipNepomuk_Resource(): Nepomuk::Resource(), sipPySelf(0)
{
}

sipNepomuk_Resource::sipNepomuk_Resource(Nepomuk::ResourceManager *a0): Nepomuk::Resource(a0), sipPySelf(0)
{
}

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

sipNepomuk_Resource::sipNepomuk_Resource(const QString& a0,const QUrl& a1): Nepomuk::Resource(a0,a1), sipPySelf(0)
{
}

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

sipNepomuk_Resource::sipNepomuk_Resource(const QString& a0,const QString& a1): Nepomuk::Resource(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Resource::sipNepomuk_Resource(const QUrl& a0,const QUrl& a1): Nepomuk::Resource(a0,a1), sipPySelf(0)
{
}

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

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


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->manager();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->uri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->type());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100QUrl,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTypes(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QUrl> *>(a0),sipType_QList_0100QUrl,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasType(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->className());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QString,Nepomuk::Variant>(sipCpp->allProperties());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QUrl,Nepomuk::Variant>(sipCpp->properties());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasProperty(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasProperty(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Nepomuk::Types::Property * a0;
        const Nepomuk::Variant * a1;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_Nepomuk_Types_Property, &a0, sipType_Nepomuk_Variant, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(sipCpp->property(*a0));
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Nepomuk::Variant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(sipCpp->property(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0, sipType_Nepomuk_Variant, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperty(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0, sipType_Nepomuk_Variant, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addProperty(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QUrl, &a0, sipType_Nepomuk_Variant, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeProperty(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exists();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->genericLabel());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->genericDescription());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->genericIcon());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Thing(sipCpp->pimoThing());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->description());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::descriptionUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIdentifiers(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::identifierUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAltLabels(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::altLabelUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->annotations());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAnnotations(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::annotationUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Tag>(sipCpp->tags());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Tag,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTags(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Tag> *>(a0),sipType_QList_0100Nepomuk_Tag,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::tagUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->topics());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTopics(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::topicUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->isTopicOfs());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIsTopicOfs(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::isTopicOfUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->isRelateds());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QList_0100Nepomuk_Resource,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIsRelateds(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::isRelatedUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->label());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::labelUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Resource, &sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->rating();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        quint32 a0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRating(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::ratingUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QStringList * a0;
        int a0State = 0;
        Nepomuk::Resource *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Resource, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSymbols(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Resource::symbolUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->annotationOf());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->isRelatedOf());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(Nepomuk::Resource::allResources());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->usageCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Resource *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KUrl * a0;
        const Nepomuk::Types::Class& a1def = Nepomuk::Types::Class();
        const Nepomuk::Types::Class * a1 = &a1def;
        Nepomuk::ResourceManager * a2 = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|J9J8", sipType_KUrl, &a0, sipType_Nepomuk_Types_Class, &a1, sipType_Nepomuk_ResourceManager, &a2))
        {
            Nepomuk::Resource *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Resource(Nepomuk::Resource::fromResourceUri(*a0,*a1,a2));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Resource___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Resource___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Resource *sipCpp = reinterpret_cast<Nepomuk::Resource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Resource));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Resource * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Resource::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Nepomuk_Resource___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Resource___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Resource *sipCpp = reinterpret_cast<Nepomuk::Resource *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Resource));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Resource * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Resource::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Nepomuk::ResourceManager * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_Nepomuk_ResourceManager, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Resource * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QUrl& a1def = QUrl();
        const QUrl * a1 = &a1def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J9", sipType_QString,&a0, &a0State, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J9J8", sipType_QString,&a0, &a0State, sipType_QUrl, &a1, sipType_Nepomuk_ResourceManager, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|J9", sipType_QUrl, &a0, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9J8", sipType_QUrl, &a0, sipType_QUrl, &a1, sipType_Nepomuk_ResourceManager, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Resource(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Resource[] = {
    {SIP_MLNAME_CAST(sipName_addAltLabel), meth_Nepomuk_Resource_addAltLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addAnnotation), meth_Nepomuk_Resource_addAnnotation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIdentifier), meth_Nepomuk_Resource_addIdentifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIsRelated), meth_Nepomuk_Resource_addIsRelated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addIsTopicOf), meth_Nepomuk_Resource_addIsTopicOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addProperty), meth_Nepomuk_Resource_addProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addSymbol), meth_Nepomuk_Resource_addSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTag), meth_Nepomuk_Resource_addTag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addTopic), meth_Nepomuk_Resource_addTopic, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addType), meth_Nepomuk_Resource_addType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allProperties), meth_Nepomuk_Resource_allProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allResources), meth_Nepomuk_Resource_allResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_altLabelUri), meth_Nepomuk_Resource_altLabelUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_altLabels), meth_Nepomuk_Resource_altLabels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationOf), meth_Nepomuk_Resource_annotationOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationUri), meth_Nepomuk_Resource_annotationUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotations), meth_Nepomuk_Resource_annotations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_className), meth_Nepomuk_Resource_className, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_Nepomuk_Resource_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_descriptionUri), meth_Nepomuk_Resource_descriptionUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_exists), meth_Nepomuk_Resource_exists, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromResourceUri), meth_Nepomuk_Resource_fromResourceUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericDescription), meth_Nepomuk_Resource_genericDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericIcon), meth_Nepomuk_Resource_genericIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_genericLabel), meth_Nepomuk_Resource_genericLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasProperty), meth_Nepomuk_Resource_hasProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasType), meth_Nepomuk_Resource_hasType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifierUri), meth_Nepomuk_Resource_identifierUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifiers), meth_Nepomuk_Resource_identifiers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_increaseUsageCount), meth_Nepomuk_Resource_increaseUsageCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelatedOf), meth_Nepomuk_Resource_isRelatedOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelatedUri), meth_Nepomuk_Resource_isRelatedUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelateds), meth_Nepomuk_Resource_isRelateds, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTopicOfUri), meth_Nepomuk_Resource_isTopicOfUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTopicOfs), meth_Nepomuk_Resource_isTopicOfs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Resource_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_label), meth_Nepomuk_Resource_label, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_labelUri), meth_Nepomuk_Resource_labelUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_manager), meth_Nepomuk_Resource_manager, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pimoThing), meth_Nepomuk_Resource_pimoThing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_properties), meth_Nepomuk_Resource_properties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Nepomuk_Resource_property, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rating), meth_Nepomuk_Resource_rating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ratingUri), meth_Nepomuk_Resource_ratingUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_Nepomuk_Resource_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeProperty), meth_Nepomuk_Resource_removeProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceType), meth_Nepomuk_Resource_resourceType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceUri), meth_Nepomuk_Resource_resourceUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAltLabels), meth_Nepomuk_Resource_setAltLabels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAnnotations), meth_Nepomuk_Resource_setAnnotations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDescription), meth_Nepomuk_Resource_setDescription, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIdentifiers), meth_Nepomuk_Resource_setIdentifiers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIsRelateds), meth_Nepomuk_Resource_setIsRelateds, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIsTopicOfs), meth_Nepomuk_Resource_setIsTopicOfs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLabel), meth_Nepomuk_Resource_setLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_Nepomuk_Resource_setProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRating), meth_Nepomuk_Resource_setRating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSymbols), meth_Nepomuk_Resource_setSymbols, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTags), meth_Nepomuk_Resource_setTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTopics), meth_Nepomuk_Resource_setTopics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTypes), meth_Nepomuk_Resource_setTypes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_symbolUri), meth_Nepomuk_Resource_symbolUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_symbols), meth_Nepomuk_Resource_symbols, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagUri), meth_Nepomuk_Resource_tagUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tags), meth_Nepomuk_Resource_tags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_topicUri), meth_Nepomuk_Resource_topicUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_topics), meth_Nepomuk_Resource_topics, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Nepomuk_Resource_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_types), meth_Nepomuk_Resource_types, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uri), meth_Nepomuk_Resource_uri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usageCount), meth_Nepomuk_Resource_usageCount, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Resource = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Resource,
        {0}
    },
    {
        sipNameNr_Resource,
        {4, 255, 0},
        71, methods_Nepomuk_Resource,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Resource,
    init_Nepomuk_Resource,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Resource,
    assign_Nepomuk_Resource,
    array_Nepomuk_Resource,
    copy_Nepomuk_Resource,
    release_Nepomuk_Resource,
    cast_Nepomuk_Resource,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/queryserviceclient.sip"
#include <nepomuk/queryserviceclient.h>
#line 3411 "sipnepomukpart3.cpp"

#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3415 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3418 "sipnepomukpart3.cpp"
#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 3421 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3424 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 3427 "sipnepomukpart3.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3430 "sipnepomukpart3.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 3433 "sipnepomukpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 3438 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3441 "sipnepomukpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3444 "sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3447 "sipnepomukpart3.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3450 "sipnepomukpart3.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3453 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3456 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3459 "sipnepomukpart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3462 "sipnepomukpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3465 "sipnepomukpart3.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3468 "sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3471 "sipnepomukpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3474 "sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3477 "sipnepomukpart3.cpp"


class sipNepomuk_Query_QueryServiceClient : public Nepomuk::Query::QueryServiceClient
{
public:
    sipNepomuk_Query_QueryServiceClient(QObject *);
    virtual ~sipNepomuk_Query_QueryServiceClient();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject * sipProtect_sender() const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipNepomuk_Query_QueryServiceClient::sipNepomuk_Query_QueryServiceClient(QObject *a0): Nepomuk::Query::QueryServiceClient(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipNepomuk_Query_QueryServiceClient::metaObject() const
{
    return sip_nepomuk_qt_metaobject(sipPySelf,sipType_Nepomuk_Query_QueryServiceClient);
}

int sipNepomuk_Query_QueryServiceClient::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Nepomuk::Query::QueryServiceClient::qt_metacall(_c,_id,_a);

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

    return _id;
}

void *sipNepomuk_Query_QueryServiceClient::qt_metacast(const char *_clname)
{
    return (sip_nepomuk_qt_metacast && sip_nepomuk_qt_metacast(sipPySelf,sipType_Nepomuk_Query_QueryServiceClient,_clname)) ? this : Nepomuk::Query::QueryServiceClient::qt_metacast(_clname);
}

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

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

    if (!meth)
        return QObject::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);
}

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

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],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_Query_QueryServiceClient::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],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_Query_QueryServiceClient::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],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_Query_QueryServiceClient::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],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_Query_QueryServiceClient::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],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_Query_QueryServiceClient::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],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_Query_QueryServiceClient::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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


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

    {
        sipNepomuk_Query_QueryServiceClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_QueryServiceClient, &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 3737 "sipnepomukpart3.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_Query_QueryServiceClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Nepomuk_Query_QueryServiceClient, &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 3779 "sipnepomukpart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipNepomuk_Query_QueryServiceClient *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipNepomuk_Query_QueryServiceClient *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_Query_QueryServiceClient *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_Query_QueryServiceClient *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_Query_QueryServiceClient *sipCpp;

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::Query::QueryServiceClient::serviceAvailable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Query::Query * a0;
        Nepomuk::Query::QueryServiceClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_QueryServiceClient, &sipCpp, sipType_Nepomuk_Query_Query, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->query(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const Nepomuk::Query::RequestPropertyMap& a1def = Nepomuk::Query::RequestPropertyMap();
        const Nepomuk::Query::RequestPropertyMap * a1 = &a1def;
        int a1State = 0;
        Nepomuk::Query::QueryServiceClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Nepomuk_Query_QueryServiceClient, &sipCpp, sipType_QString,&a0, &a0State, sipType_QHash_0100QString_0100Nepomuk_Types_Property,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sparqlQuery(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<Nepomuk::Query::RequestPropertyMap *>(a1),sipType_QHash_0100QString_0100Nepomuk_Types_Property,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_QueryServiceClient, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->desktopQuery(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Query::Query * a0;
        Nepomuk::Query::QueryServiceClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_QueryServiceClient, &sipCpp, sipType_Nepomuk_Query_Query, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->blockingQuery(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const Nepomuk::Query::RequestPropertyMap& a1def = Nepomuk::Query::RequestPropertyMap();
        const Nepomuk::Query::RequestPropertyMap * a1 = &a1def;
        int a1State = 0;
        Nepomuk::Query::QueryServiceClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Nepomuk_Query_QueryServiceClient, &sipCpp, sipType_QString,&a0, &a0State, sipType_QHash_0100QString_0100Nepomuk_Types_Property,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->blockingSparqlQuery(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<Nepomuk::Query::RequestPropertyMap *>(a1),sipType_QHash_0100QString_0100Nepomuk_Types_Property,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_QueryServiceClient, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->blockingDesktopQuery(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::QueryServiceClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Query::Query * a0;
        bool a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Query_Query, &a0))
        {
            QList<Nepomuk::Query::Result> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Query::Result>(Nepomuk::Query::QueryServiceClient::syncQuery(*a0,&a1));
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Query_Result,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a1);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const Nepomuk::Query::RequestPropertyMap& a1def = Nepomuk::Query::RequestPropertyMap();
        const Nepomuk::Query::RequestPropertyMap * a1 = &a1def;
        int a1State = 0;
        bool a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1", sipType_QString,&a0, &a0State, sipType_QHash_0100QString_0100Nepomuk_Types_Property,&a1, &a1State))
        {
            QList<Nepomuk::Query::Result> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Query::Result>(Nepomuk::Query::QueryServiceClient::syncSparqlQuery(*a0,*a1,&a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<Nepomuk::Query::RequestPropertyMap *>(a1),sipType_QHash_0100QString_0100Nepomuk_Types_Property,a1State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Query_Result,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a2);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QList<Nepomuk::Query::Result> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Query::Result>(Nepomuk::Query::QueryServiceClient::syncDesktopQuery(*a0,&a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QList_0100Nepomuk_Query_Result,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a1);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_QueryServiceClient)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(Nepomuk::Query::QueryServiceClient *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Query_QueryServiceClient *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Query::QueryServiceClient *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_QueryServiceClient[] = {
    {SIP_MLNAME_CAST(sipName_blockingDesktopQuery), meth_Nepomuk_Query_QueryServiceClient_blockingDesktopQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_blockingQuery), meth_Nepomuk_Query_QueryServiceClient_blockingQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_blockingSparqlQuery), meth_Nepomuk_Query_QueryServiceClient_blockingSparqlQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Nepomuk_Query_QueryServiceClient_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Nepomuk_Query_QueryServiceClient_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Nepomuk_Query_QueryServiceClient_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Nepomuk_Query_QueryServiceClient_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_desktopQuery), meth_Nepomuk_Query_QueryServiceClient_desktopQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Nepomuk_Query_QueryServiceClient_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_query), meth_Nepomuk_Query_QueryServiceClient_query, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Nepomuk_Query_QueryServiceClient_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Nepomuk_Query_QueryServiceClient_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serviceAvailable), meth_Nepomuk_Query_QueryServiceClient_serviceAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sparqlQuery), meth_Nepomuk_Query_QueryServiceClient_sparqlQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_syncDesktopQuery), meth_Nepomuk_Query_QueryServiceClient_syncDesktopQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_syncQuery), meth_Nepomuk_Query_QueryServiceClient_syncQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_syncSparqlQuery), meth_Nepomuk_Query_QueryServiceClient_syncSparqlQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Nepomuk_Query_QueryServiceClient_timerEvent, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Nepomuk_Query_QueryServiceClient[] = {
    {"finishedListing()", 0, 0},
    {"entriesRemoved(QList<QUrl>)", 0, 0},
    {"newEntries(QList<Nepomuk::Query::Result>)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_QueryServiceClient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__QueryServiceClient,
        {0}
    },
    {
        sipNameNr_QueryServiceClient,
        {7, 255, 0},
        18, methods_Nepomuk_Query_QueryServiceClient,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_QueryServiceClient,
    0,
    init_Nepomuk_Query_QueryServiceClient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_QueryServiceClient,
    0,
    0,
    0,
    release_Nepomuk_Query_QueryServiceClient,
    cast_Nepomuk_Query_QueryServiceClient,
    0,
    0,
    0
},
    &Nepomuk::Query::QueryServiceClient::staticMetaObject,
    0,
    pyqt4_signals_Nepomuk_Query_QueryServiceClient
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/queryparser.sip"
#include <nepomuk/queryparser.h>
#line 4417 "sipnepomukpart3.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/queryparser.sip"
#include <nepomuk/queryparser.h>
#line 4421 "sipnepomukpart3.cpp"


extern "C" {static int slot_Nepomuk_Query_QueryParser_ParserFlags___bool__(PyObject *);}
static int slot_Nepomuk_Query_QueryParser_ParserFlags___bool__(PyObject *sipSelf)
{
    Nepomuk::Query::QueryParser::ParserFlags *sipCpp = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_QueryParser_ParserFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Nepomuk_Query_QueryParser_ParserFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_QueryParser_ParserFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::QueryParser::ParserFlags *sipCpp = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_QueryParser_ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;

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

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 4467 "sipnepomukpart3.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::QueryParser::ParserFlags *>(a0),sipType_Nepomuk_Query_QueryParser_ParserFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Nepomuk_Query_QueryParser_ParserFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_QueryParser_ParserFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::QueryParser::ParserFlags *sipCpp = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_QueryParser_ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 4503 "sipnepomukpart3.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::QueryParser::ParserFlags *>(a0),sipType_Nepomuk_Query_QueryParser_ParserFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Nepomuk_Query_QueryParser_ParserFlags___invert__(PyObject *);}
static PyObject *slot_Nepomuk_Query_QueryParser_ParserFlags___invert__(PyObject *sipSelf)
{
    Nepomuk::Query::QueryParser::ParserFlags *sipCpp = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_QueryParser_ParserFlags));

    if (!sipCpp)
        return 0;


    {
        {
            Nepomuk::Query::QueryParser::ParserFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::QueryParser::ParserFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


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

    {
        Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_Query_QueryParser_ParserFlags, &a0, &a0State, &a1))
        {
            Nepomuk::Query::QueryParser::ParserFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::QueryParser::ParserFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_QueryParser_ParserFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,and_slot,NULL,sipArg0,sipArg1);
}


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

    {
        Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;
        Nepomuk::Query::QueryParser::ParserFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Nepomuk_Query_QueryParser_ParserFlags, &a0, &a0State, sipType_Nepomuk_Query_QueryParser_ParserFlags, &a1, &a1State))
        {
            Nepomuk::Query::QueryParser::ParserFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::QueryParser::ParserFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_QueryParser_ParserFlags,a0State);
            sipReleaseType(a1,sipType_Nepomuk_Query_QueryParser_ParserFlags,a1State);

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

    {
        Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_Query_QueryParser_ParserFlags, &a0, &a0State, &a1))
        {
            Nepomuk::Query::QueryParser::ParserFlags *sipRes = 0;

#line 320 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::QueryParser::ParserFlags(*a0 ^ a1);
#line 4610 "sipnepomukpart3.cpp"
            sipReleaseType(a0,sipType_Nepomuk_Query_QueryParser_ParserFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,xor_slot,NULL,sipArg0,sipArg1);
}


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

    {
        Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;
        Nepomuk::Query::QueryParser::ParserFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Nepomuk_Query_QueryParser_ParserFlags, &a0, &a0State, sipType_Nepomuk_Query_QueryParser_ParserFlags, &a1, &a1State))
        {
            Nepomuk::Query::QueryParser::ParserFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::QueryParser::ParserFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_QueryParser_ParserFlags,a0State);
            sipReleaseType(a1,sipType_Nepomuk_Query_QueryParser_ParserFlags,a1State);

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

    {
        Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_Query_QueryParser_ParserFlags, &a0, &a0State, &a1))
        {
            Nepomuk::Query::QueryParser::ParserFlags *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::QueryParser::ParserFlags(*a0 | a1);
#line 4662 "sipnepomukpart3.cpp"
            sipReleaseType(a0,sipType_Nepomuk_Query_QueryParser_ParserFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Nepomuk_Query_QueryParser_ParserFlags___int__(PyObject *);}
static PyObject *slot_Nepomuk_Query_QueryParser_ParserFlags___int__(PyObject *sipSelf)
{
    Nepomuk::Query::QueryParser::ParserFlags *sipCpp = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_QueryParser_ParserFlags));

    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_Query_QueryParser_ParserFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_QueryParser_ParserFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_QueryParser_ParserFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Nepomuk::Query::QueryParser::ParserFlags *sipCpp = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_QueryParser_ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_QueryParser_ParserFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::QueryParser::ParserFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_QueryParser_ParserFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Nepomuk::Query::QueryParser::ParserFlags *sipCpp = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_QueryParser_ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_QueryParser_ParserFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::QueryParser::ParserFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_QueryParser_ParserFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Nepomuk::Query::QueryParser::ParserFlags *sipCpp = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_QueryParser_ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::QueryParser::ParserFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Nepomuk_Query_QueryParser_ParserFlags(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_QueryParser_ParserFlags(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::QueryParser::ParserFlags[sipNrElem];
}


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


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


extern "C" {static void *init_Nepomuk_Query_QueryParser_ParserFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Query_QueryParser_ParserFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Nepomuk::Query::QueryParser::ParserFlags *sipCpp = 0;

    {
        const Nepomuk::Query::QueryParser::ParserFlags * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Nepomuk_Query_QueryParser_ParserFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_Nepomuk_Query_QueryParser_ParserFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Nepomuk::Query::QueryParser::ParserFlags **sipCppPtr = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags **>(sipCppPtrV);

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_QueryParser_ParserFlag)) ||
            sipCanConvertToType(sipPy, sipType_Nepomuk_Query_QueryParser_ParserFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_QueryParser_ParserFlag)))
{
    *sipCppPtr = new Nepomuk::Query::QueryParser::ParserFlags(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Nepomuk::Query::QueryParser::ParserFlags *>(sipConvertToType(sipPy, sipType_Nepomuk_Query_QueryParser_ParserFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 4955 "sipnepomukpart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Query_QueryParser_ParserFlags[] = {
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___bool__, bool_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___ne__, ne_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___eq__, eq_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___invert__, invert_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___and__, and_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___xor__, xor_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___or__, or_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___int__, int_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___ixor__, ixor_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___ior__, ior_slot},
    {(void *)slot_Nepomuk_Query_QueryParser_ParserFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_QueryParser_ParserFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__QueryParser__ParserFlags,
        {0}
    },
    {
        sipNameNr_ParserFlags,
        {24, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_QueryParser_ParserFlags,
    init_Nepomuk_Query_QueryParser_ParserFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_QueryParser_ParserFlags,
    assign_Nepomuk_Query_QueryParser_ParserFlags,
    array_Nepomuk_Query_QueryParser_ParserFlags,
    copy_Nepomuk_Query_QueryParser_ParserFlags,
    release_Nepomuk_Query_QueryParser_ParserFlags,
    cast_Nepomuk_Query_QueryParser_ParserFlags,
    convertTo_Nepomuk_Query_QueryParser_ParserFlags,
    0,
    0
},
    0,
    1,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/queryparser.sip"
#include <nepomuk/queryparser.h>
#line 5028 "sipnepomukpart3.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 5034 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5037 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5040 "sipnepomukpart3.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 5043 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/queryparser.sip"
#include <nepomuk/queryparser.h>
#line 5046 "sipnepomukpart3.cpp"


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_QueryParser, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(sipCpp->parse(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::Query::QueryParser::ParserFlags * a1;
        int a1State = 0;
        Nepomuk::Query::QueryParser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_Nepomuk_Query_QueryParser, &sipCpp, sipType_QString,&a0, &a0State, sipType_Nepomuk_Query_QueryParser_ParserFlags, &a1, &a1State))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(sipCpp->parse(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_Nepomuk_Query_QueryParser_ParserFlags,a1State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_QueryParser, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QList<Nepomuk::Types::Property> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->matchProperty(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(Nepomuk::Query::QueryParser::parseQuery(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Query::QueryParser *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Nepomuk_Query_QueryParser[] = {
    {SIP_MLNAME_CAST(sipName_matchProperty), meth_Nepomuk_Query_QueryParser_matchProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parse), meth_Nepomuk_Query_QueryParser_parse, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseQuery), meth_Nepomuk_Query_QueryParser_parseQuery, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query_QueryParser[] = {
    {sipName_NoParserFlags, Nepomuk::Query::QueryParser::NoParserFlags, 25},
    {sipName_QueryTermGlobbing, Nepomuk::Query::QueryParser::QueryTermGlobbing, 25},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_QueryParser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__QueryParser,
        {0}
    },
    {
        sipNameNr_QueryParser,
        {7, 255, 0},
        3, methods_Nepomuk_Query_QueryParser,
        2, enummembers_Nepomuk_Query_QueryParser,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Nepomuk_Query_QueryParser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_QueryParser,
    0,
    0,
    0,
    release_Nepomuk_Query_QueryParser,
    cast_Nepomuk_Query_QueryParser,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 5278 "sipnepomukpart3.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 5284 "sipnepomukpart3.cpp"


extern "C" {static int slot_Nepomuk_Query_Query_SparqlFlags___bool__(PyObject *);}
static int slot_Nepomuk_Query_Query_SparqlFlags___bool__(PyObject *sipSelf)
{
    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

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

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;

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

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 5330 "sipnepomukpart3.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::Query::SparqlFlags *>(a0),sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 5366 "sipnepomukpart3.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::Query::SparqlFlags *>(a0),sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___invert__(PyObject *);}
static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___invert__(PyObject *sipSelf)
{
    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    if (!sipCpp)
        return 0;


    {
        {
            Nepomuk::Query::Query::SparqlFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query::SparqlFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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


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

    {
        Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State, &a1))
        {
            Nepomuk::Query::Query::SparqlFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query::SparqlFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,and_slot,NULL,sipArg0,sipArg1);
}


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

    {
        Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;
        Nepomuk::Query::Query::SparqlFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State, sipType_Nepomuk_Query_Query_SparqlFlags, &a1, &a1State))
        {
            Nepomuk::Query::Query::SparqlFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query::SparqlFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);
            sipReleaseType(a1,sipType_Nepomuk_Query_Query_SparqlFlags,a1State);

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

    {
        Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State, &a1))
        {
            Nepomuk::Query::Query::SparqlFlags *sipRes = 0;

#line 320 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::Query::SparqlFlags(*a0 ^ a1);
#line 5473 "sipnepomukpart3.cpp"
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,xor_slot,NULL,sipArg0,sipArg1);
}


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

    {
        Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;
        Nepomuk::Query::Query::SparqlFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State, sipType_Nepomuk_Query_Query_SparqlFlags, &a1, &a1State))
        {
            Nepomuk::Query::Query::SparqlFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query::SparqlFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);
            sipReleaseType(a1,sipType_Nepomuk_Query_Query_SparqlFlags,a1State);

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

    {
        Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State, &a1))
        {
            Nepomuk::Query::Query::SparqlFlags *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::Query::SparqlFlags(*a0 | a1);
#line 5525 "sipnepomukpart3.cpp"
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___int__(PyObject *);}
static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___int__(PyObject *sipSelf)
{
    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    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_Query_Query_SparqlFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_Query_SparqlFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::Query::SparqlFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::Query::SparqlFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::Query::SparqlFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Nepomuk_Query_Query_SparqlFlags(SIP_SSIZE_T);}
static void *array_Nepomuk_Query_Query_SparqlFlags(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Query::Query::SparqlFlags[sipNrElem];
}


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


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


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

    {
        const Nepomuk::Query::Query::SparqlFlags * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_Query_SparqlFlag)) ||
            sipCanConvertToType(sipPy, sipType_Nepomuk_Query_Query_SparqlFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_Query_SparqlFlag)))
{
    *sipCppPtr = new Nepomuk::Query::Query::SparqlFlags(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipConvertToType(sipPy, sipType_Nepomuk_Query_Query_SparqlFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 5818 "sipnepomukpart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Query_Query_SparqlFlags[] = {
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___bool__, bool_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___ne__, ne_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___eq__, eq_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___invert__, invert_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___and__, and_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___xor__, xor_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___or__, or_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___int__, int_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___ixor__, ixor_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___ior__, ior_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Query_SparqlFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Query__SparqlFlags,
        {0}
    },
    {
        sipNameNr_SparqlFlags,
        {20, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_Query_SparqlFlags,
    init_Nepomuk_Query_Query_SparqlFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Query_SparqlFlags,
    assign_Nepomuk_Query_Query_SparqlFlags,
    array_Nepomuk_Query_Query_SparqlFlags,
    copy_Nepomuk_Query_Query_SparqlFlags,
    release_Nepomuk_Query_Query_SparqlFlags,
    cast_Nepomuk_Query_Query_SparqlFlags,
    convertTo_Nepomuk_Query_Query_SparqlFlags,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 5893 "sipnepomukpart3.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 5897 "sipnepomukpart3.cpp"


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

    {
        Nepomuk::Query::Query::RequestProperty *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_Query_RequestProperty, &sipCpp))
        {
            Nepomuk::Types::Property *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->property());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query::RequestProperty *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->optional();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Query_Query_RequestProperty___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Query_RequestProperty___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Query::RequestProperty *sipCpp = reinterpret_cast<Nepomuk::Query::Query::RequestProperty *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_RequestProperty));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Query::RequestProperty * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Nepomuk::Query::Query::RequestProperty::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Nepomuk_Query_Query_RequestProperty___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Query_Query_RequestProperty___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Query::Query::RequestProperty *sipCpp = reinterpret_cast<Nepomuk::Query::Query::RequestProperty *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_RequestProperty));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Query::Query::RequestProperty * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Query::Query::RequestProperty::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Query::Query::RequestProperty *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

    {
        const Nepomuk::Types::Property * a0;
        bool a1 = 1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|b", sipType_Nepomuk_Types_Property, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Query::Query::RequestProperty(*a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Query::RequestProperty * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_Query_RequestProperty[] = {
    {SIP_MLNAME_CAST(sipName_optional), meth_Nepomuk_Query_Query_RequestProperty_optional, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Nepomuk_Query_Query_RequestProperty_property, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Query_RequestProperty = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Query__RequestProperty,
        {0}
    },
    {
        sipNameNr_RequestProperty,
        {20, 255, 0},
        2, methods_Nepomuk_Query_Query_RequestProperty,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_Query_RequestProperty,
    init_Nepomuk_Query_Query_RequestProperty,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Query_RequestProperty,
    0,
    0,
    0,
    release_Nepomuk_Query_Query_RequestProperty,
    cast_Nepomuk_Query_Query_RequestProperty,
    0,
    0,
    0
},
    0,
    0,
    0
};
