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

#include "sipAPInepomuk.h"

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

#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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[] = {{36, 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,
        {6, 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/pykde4-4.7.3/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 263 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 267 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 270 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 273 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 276 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 279 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 282 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 285 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 288 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 291 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 294 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 297 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 300 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 303 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 306 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 309 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 312 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 315 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 318 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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[] = {{134, 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,
        {2, 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 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/queryserviceclient.sip"
#include <nepomuk/queryserviceclient.h>
#line 868 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 872 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 875 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 878 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/result.sip"
#include <nepomuk/result.h>
#line 881 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 884 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 887 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 890 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 893 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 896 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 899 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 902 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 905 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 908 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 911 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 914 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 917 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 920 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 923 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 926 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 929 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 932 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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 *sipMeth;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        Nepomuk::Query::QueryServiceClient *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isListingFinished();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Query::QueryServiceClient *sipCpp;

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

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QueryServiceClient, sipName_errorMessage, 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[] = {{134, 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_errorMessage), meth_Nepomuk_Query_QueryServiceClient_errorMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isListingFinished), meth_Nepomuk_Query_QueryServiceClient_isListingFinished, 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[] = {
    {"error(QString)", 0, 0},
    {"resultCount(int)", 0, 0},
    {"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,
        {6, 255, 0},
        20, 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/pykde4-4.7.3/sip/nepomuk/queryparser.sip"
#include <nepomuk/queryparser.h>
#line 1930 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/queryparser.sip"
#include <nepomuk/queryparser.h>
#line 1934 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 1952 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1982 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 2018 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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);
        }
    }

    return 0;
}


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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::QueryParser::ParserFlags(*a0 ^ a1);
#line 2127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::QueryParser::ParserFlags(*a0 | a1);
#line 2179 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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);
        }
    }

    return 0;
}


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 336 "/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 2474 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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,
        {27, 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/pykde4-4.7.3/sip/nepomuk/queryparser.sip"
#include <nepomuk/queryparser.h>
#line 2547 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 2551 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2554 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/queryparser.sip"
#include <nepomuk/queryparser.h>
#line 2557 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2560 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 2563 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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);
        }
    }

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(Nepomuk::Query::QueryParser::parseQuery(*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_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_DetectFilenamePattern, Nepomuk::Query::QueryParser::DetectFilenamePattern, 28},
    {sipName_NoParserFlags, Nepomuk::Query::QueryParser::NoParserFlags, 28},
    {sipName_QueryTermGlobbing, Nepomuk::Query::QueryParser::QueryTermGlobbing, 28},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_QueryParser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__QueryParser,
        {0}
    },
    {
        sipNameNr_QueryParser,
        {6, 255, 0},
        3, methods_Nepomuk_Query_QueryParser,
        3, 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/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 2814 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 2818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 2836 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 2866 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::Query::QueryFlags *>(a0),sipType_Nepomuk_Query_Query_QueryFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 2902 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::Query::QueryFlags *>(a0),sipType_Nepomuk_Query_Query_QueryFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Nepomuk_Query_Query_QueryFlags___invert__(PyObject *);}
static PyObject *slot_Nepomuk_Query_Query_QueryFlags___invert__(PyObject *sipSelf)
{
    Nepomuk::Query::Query::QueryFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_QueryFlags));

    if (!sipCpp)
        return 0;


    {
        {
            Nepomuk::Query::Query::QueryFlags *sipRes;

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

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

    return 0;
}


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

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

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

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

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

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

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

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

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

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

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

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::Query::QueryFlags(*a0 ^ a1);
#line 3011 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_QueryFlags,a0State);

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

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

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

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

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

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

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

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::Query::QueryFlags(*a0 | a1);
#line 3063 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_QueryFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_Nepomuk_Query_Query_QueryFlags,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_QueryFlags___int__(PyObject *);}
static PyObject *slot_Nepomuk_Query_Query_QueryFlags___int__(PyObject *sipSelf)
{
    Nepomuk::Query::Query::QueryFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::QueryFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_QueryFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::Query::QueryFlags::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_QueryFlags(void *, const sipTypeDef *);}
static void *cast_Nepomuk_Query_Query_QueryFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Nepomuk_Query_Query_QueryFlags)
        return ptr;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_Query_QueryFlag)) ||
            sipCanConvertToType(sipPy, sipType_Nepomuk_Query_Query_QueryFlags, SIP_NO_CONVERTORS));

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

    return sipGetState(sipTransferObj);
}

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

return 0;
#line 3358 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Query_Query_QueryFlags[] = {
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___bool__, bool_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___ne__, ne_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___eq__, eq_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___invert__, invert_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___and__, and_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___xor__, xor_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___or__, or_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___int__, int_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___ixor__, ixor_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___ior__, ior_slot},
    {(void *)slot_Nepomuk_Query_Query_QueryFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Query_QueryFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Query__QueryFlags,
        {0}
    },
    {
        sipNameNr_QueryFlags,
        {21, 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_QueryFlags,
    init_Nepomuk_Query_Query_QueryFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Query_QueryFlags,
    assign_Nepomuk_Query_Query_QueryFlags,
    array_Nepomuk_Query_Query_QueryFlags,
    copy_Nepomuk_Query_Query_QueryFlags,
    release_Nepomuk_Query_Query_QueryFlags,
    cast_Nepomuk_Query_Query_QueryFlags,
    convertTo_Nepomuk_Query_Query_QueryFlags,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 3431 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 3435 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 3453 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 3483 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 3519 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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);
        }
    }

    return 0;
}


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 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::Query::SparqlFlags(*a0 ^ a1);
#line 3628 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Nepomuk::Query::Query::SparqlFlags(*a0 | a1);
#line 3680 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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);
        }
    }

    return 0;
}


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 336 "/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 3975 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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,
        {21, 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/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 4050 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 4054 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/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,
        {21, 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
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 4314 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"

#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 4318 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 4321 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 4324 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 4327 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/literal.sip"
#include <nepomuk/literal.h>
#line 4330 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4333 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4336 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 4339 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart3.cpp"


class sipNepomuk_Types_Property : public Nepomuk::Types::Property
{
public:
    sipNepomuk_Types_Property();
    sipNepomuk_Types_Property(const QUrl&);
    sipNepomuk_Types_Property(const Nepomuk::Types::Property&);
    ~sipNepomuk_Types_Property();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Types_Property::sipNepomuk_Types_Property(): Nepomuk::Types::Property(), sipPySelf(0)
{
}

sipNepomuk_Types_Property::sipNepomuk_Types_Property(const QUrl& a0): Nepomuk::Types::Property(a0), sipPySelf(0)
{
}

sipNepomuk_Types_Property::sipNepomuk_Types_Property(const Nepomuk::Types::Property& a0): Nepomuk::Types::Property(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->parentProperties());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->subProperties());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->inverseProperty());
            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_Property, sipName_inverseProperty, NULL);

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Class(sipCpp->range());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Literal(sipCpp->literalRangeType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Class(sipCpp->domain());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cardinality();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->minCardinality();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Types::Property *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maxCardinality();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Types::Property * a0;
        Nepomuk::Types::Property *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Nepomuk::Types::Property * a0;
        Nepomuk::Types::Property *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Types_Property___lt__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Types_Property___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Types::Property *sipCpp = reinterpret_cast<Nepomuk::Types::Property *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Types_Property));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Nepomuk::Query::ComparisonTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ComparisonTerm(operator<((*sipCpp), *a0));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,lt_slot,sipType_Nepomuk_Types_Property,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Types_Property___gt__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Types_Property___gt__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Types::Property *sipCpp = reinterpret_cast<Nepomuk::Types::Property *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Types_Property));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Nepomuk::Query::ComparisonTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ComparisonTerm(operator>((*sipCpp), *a0));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,gt_slot,sipType_Nepomuk_Types_Property,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Types_Property___le__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Types_Property___le__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Types::Property *sipCpp = reinterpret_cast<Nepomuk::Types::Property *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Types_Property));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Nepomuk::Query::ComparisonTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ComparisonTerm(operator<=((*sipCpp), *a0));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,le_slot,sipType_Nepomuk_Types_Property,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Types_Property___ge__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Types_Property___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Types::Property *sipCpp = reinterpret_cast<Nepomuk::Types::Property *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Types_Property));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Nepomuk::Query::ComparisonTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ComparisonTerm(operator>=((*sipCpp), *a0));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,ge_slot,sipType_Nepomuk_Types_Property,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Types_Property___eq__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Types_Property___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Types::Property *sipCpp = reinterpret_cast<Nepomuk::Types::Property *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Types_Property));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Nepomuk::Query::ComparisonTerm *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::ComparisonTerm(operator==((*sipCpp), *a0));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Nepomuk_Types_Property___ne__(PyObject *,PyObject *);}
static PyObject *slot_Nepomuk_Types_Property___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Types::Property *sipCpp = reinterpret_cast<Nepomuk::Types::Property *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Types_Property));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Nepomuk_Query_Term, &a0))
        {
            Nepomuk::Query::Term *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(operator!=((*sipCpp), *a0));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (targetType == sipType_Nepomuk_Types_Property)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Types_Entity)->ctd_cast((Nepomuk::Types::Entity *)(Nepomuk::Types::Property *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Types_Property *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Types::Property *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Nepomuk_Types_Property(SIP_SSIZE_T);}
static void *array_Nepomuk_Types_Property(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Types::Property[sipNrElem];
}


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Types::Property * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Types_Property[] = {
    {(void *)slot_Nepomuk_Types_Property___lt__, lt_slot},
    {(void *)slot_Nepomuk_Types_Property___gt__, gt_slot},
    {(void *)slot_Nepomuk_Types_Property___le__, le_slot},
    {(void *)slot_Nepomuk_Types_Property___ge__, ge_slot},
    {(void *)slot_Nepomuk_Types_Property___eq__, eq_slot},
    {(void *)slot_Nepomuk_Types_Property___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Nepomuk_Types_Property[] = {
    {SIP_MLNAME_CAST(sipName_cardinality), meth_Nepomuk_Types_Property_cardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_domain), meth_Nepomuk_Types_Property_domain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inverseProperty), meth_Nepomuk_Types_Property_inverseProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isParentOf), meth_Nepomuk_Types_Property_isParentOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSubPropertyOf), meth_Nepomuk_Types_Property_isSubPropertyOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_literalRangeType), meth_Nepomuk_Types_Property_literalRangeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maxCardinality), meth_Nepomuk_Types_Property_maxCardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_minCardinality), meth_Nepomuk_Types_Property_minCardinality, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentProperties), meth_Nepomuk_Types_Property_parentProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_range), meth_Nepomuk_Types_Property_range, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subProperties), meth_Nepomuk_Types_Property_subProperties, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Types_Property = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Types__Property,
        {0}
    },
    {
        sipNameNr_Property,
        {47, 255, 0},
        11, methods_Nepomuk_Types_Property,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Types_Property,
    slots_Nepomuk_Types_Property,
    init_Nepomuk_Types_Property,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Types_Property,
    assign_Nepomuk_Types_Property,
    array_Nepomuk_Types_Property,
    copy_Nepomuk_Types_Property,
    release_Nepomuk_Types_Property,
    cast_Nepomuk_Types_Property,
    0,
    0,
    0
},
    0,
    0,
    0
};
