/*
 * Module code.
 *
 * Generated by SIP 4.11.2 on Mon Feb 14 20:11:05 2011
 */

#include "sipAPInepomuk.h"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 12 "sipnepomukpart4.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 16 "sipnepomukpart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 19 "sipnepomukpart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/literal.sip"
#include <nepomuk/literal.h>
#line 22 "sipnepomukpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 25 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 28 "sipnepomukpart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 31 "sipnepomukpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 34 "sipnepomukpart4.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;
}


/* 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[] = {{45, 255, 1}};


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,
        {43, 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,
    0,
    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
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 558 "sipnepomukpart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 562 "sipnepomukpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 565 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 568 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 571 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 574 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 577 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 580 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 583 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 586 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 589 "sipnepomukpart4.cpp"


class sipNepomuk_Query_OrTerm : public Nepomuk::Query::OrTerm
{
public:
    sipNepomuk_Query_OrTerm();
    sipNepomuk_Query_OrTerm(const Nepomuk::Query::OrTerm&);
    sipNepomuk_Query_OrTerm(const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&,const Nepomuk::Query::Term&);
    sipNepomuk_Query_OrTerm(const QList<Nepomuk::Query::Term>&);
    ~sipNepomuk_Query_OrTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_OrTerm::sipNepomuk_Query_OrTerm(): Nepomuk::Query::OrTerm(), sipPySelf(0)
{
}

sipNepomuk_Query_OrTerm::sipNepomuk_Query_OrTerm(const Nepomuk::Query::OrTerm& a0): Nepomuk::Query::OrTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_OrTerm::sipNepomuk_Query_OrTerm(const Nepomuk::Query::Term& a0,const Nepomuk::Query::Term& a1,const Nepomuk::Query::Term& a2,const Nepomuk::Query::Term& a3,const Nepomuk::Query::Term& a4,const Nepomuk::Query::Term& a5): Nepomuk::Query::OrTerm(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
}

sipNepomuk_Query_OrTerm::sipNepomuk_Query_OrTerm(const QList<Nepomuk::Query::Term>& a0): Nepomuk::Query::OrTerm(a0), sipPySelf(0)
{
}

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


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

    if (targetType == sipType_Nepomuk_Query_OrTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_GroupTerm)->ctd_cast((Nepomuk::Query::GroupTerm *)(Nepomuk::Query::OrTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Query::Term * a0;
        const Nepomuk::Query::Term * a1;
        const Nepomuk::Query::Term& a2def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a2 = &a2def;
        const Nepomuk::Query::Term& a3def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a3 = &a3def;
        const Nepomuk::Query::Term& a4def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a4 = &a4def;
        const Nepomuk::Query::Term& a5def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a5 = &a5def;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9|J9J9J9J9", sipType_Nepomuk_Query_Term, &a0, sipType_Nepomuk_Query_Term, &a1, sipType_Nepomuk_Query_Term, &a2, sipType_Nepomuk_Query_Term, &a3, sipType_Nepomuk_Query_Term, &a4, sipType_Nepomuk_Query_Term, &a5))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_OrTerm(*a0,*a1,*a2,*a3,*a4,*a5);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_OrTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__OrTerm,
        {0}
    },
    {
        sipNameNr_OrTerm,
        {7, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_OrTerm,
    0,
    init_Nepomuk_Query_OrTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_OrTerm,
    assign_Nepomuk_Query_OrTerm,
    array_Nepomuk_Query_OrTerm,
    copy_Nepomuk_Query_OrTerm,
    release_Nepomuk_Query_OrTerm,
    cast_Nepomuk_Query_OrTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 830 "sipnepomukpart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 834 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 837 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 840 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 843 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 846 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 849 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 852 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 855 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 858 "sipnepomukpart4.cpp"


class sipNepomuk_Query_OptionalTerm : public Nepomuk::Query::OptionalTerm
{
public:
    sipNepomuk_Query_OptionalTerm();
    sipNepomuk_Query_OptionalTerm(const Nepomuk::Query::OptionalTerm&);
    ~sipNepomuk_Query_OptionalTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_OptionalTerm::sipNepomuk_Query_OptionalTerm(): Nepomuk::Query::OptionalTerm(), sipPySelf(0)
{
}

sipNepomuk_Query_OptionalTerm::sipNepomuk_Query_OptionalTerm(const Nepomuk::Query::OptionalTerm& a0): Nepomuk::Query::OptionalTerm(a0), sipPySelf(0)
{
}

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


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(Nepomuk::Query::OptionalTerm::optionalizeTerm(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_OptionalTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_SimpleTerm)->ctd_cast((Nepomuk::Query::SimpleTerm *)(Nepomuk::Query::OptionalTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_OptionalTerm[] = {
    {SIP_MLNAME_CAST(sipName_optionalizeTerm), meth_Nepomuk_Query_OptionalTerm_optionalizeTerm, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_OptionalTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__OptionalTerm,
        {0}
    },
    {
        sipNameNr_OptionalTerm,
        {7, 255, 0},
        1, methods_Nepomuk_Query_OptionalTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_OptionalTerm,
    0,
    init_Nepomuk_Query_OptionalTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_OptionalTerm,
    assign_Nepomuk_Query_OptionalTerm,
    array_Nepomuk_Query_OptionalTerm,
    copy_Nepomuk_Query_OptionalTerm,
    release_Nepomuk_Query_OptionalTerm,
    cast_Nepomuk_Query_OptionalTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/ontology.sip"
#include <nepomuk/ontology.h>
#line 1080 "sipnepomukpart4.cpp"

#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1084 "sipnepomukpart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 1087 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1090 "sipnepomukpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1093 "sipnepomukpart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 1096 "sipnepomukpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1099 "sipnepomukpart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 1102 "sipnepomukpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 1105 "sipnepomukpart4.cpp"


class sipNepomuk_Types_Ontology : public Nepomuk::Types::Ontology
{
public:
    sipNepomuk_Types_Ontology();
    sipNepomuk_Types_Ontology(const QUrl&);
    sipNepomuk_Types_Ontology(const Nepomuk::Types::Ontology&);
    ~sipNepomuk_Types_Ontology();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Types_Ontology::sipNepomuk_Types_Ontology(): Nepomuk::Types::Ontology(), sipPySelf(0)
{
}

sipNepomuk_Types_Ontology::sipNepomuk_Types_Ontology(const QUrl& a0): Nepomuk::Types::Ontology(a0), sipPySelf(0)
{
}

sipNepomuk_Types_Ontology::sipNepomuk_Types_Ontology(const Nepomuk::Types::Ontology& a0): Nepomuk::Types::Ontology(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Types::Ontology *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Nepomuk::Types::Ontology *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Nepomuk_Types_Ontology, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Nepomuk::Types::Class *sipRes;

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Ontology *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->allProperties());
            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_Ontology, sipName_allProperties, NULL);

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Nepomuk::Types::Ontology *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Nepomuk_Types_Ontology, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Nepomuk::Types::Property *sipRes;

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Types_Ontology)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Types_Ontology[] = {
    {SIP_MLNAME_CAST(sipName_allClasses), meth_Nepomuk_Types_Ontology_allClasses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allProperties), meth_Nepomuk_Types_Ontology_allProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findClassByLabel), meth_Nepomuk_Types_Ontology_findClassByLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findClassByName), meth_Nepomuk_Types_Ontology_findClassByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findPropertyByLabel), meth_Nepomuk_Types_Ontology_findPropertyByLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findPropertyByName), meth_Nepomuk_Types_Ontology_findPropertyByName, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Types_Ontology = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Types__Ontology,
        {0}
    },
    {
        sipNameNr_Ontology,
        {43, 255, 0},
        6, methods_Nepomuk_Types_Ontology,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Types_Ontology,
    0,
    init_Nepomuk_Types_Ontology,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Types_Ontology,
    assign_Nepomuk_Types_Ontology,
    array_Nepomuk_Types_Ontology,
    copy_Nepomuk_Types_Ontology,
    release_Nepomuk_Types_Ontology,
    cast_Nepomuk_Types_Ontology,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/nepomukservice.sip"
#include <nepomuk/nepomukservice.h>
#line 1507 "sipnepomukpart4.cpp"

#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1511 "sipnepomukpart4.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 1514 "sipnepomukpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1517 "sipnepomukpart4.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1520 "sipnepomukpart4.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1523 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1526 "sipnepomukpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1529 "sipnepomukpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1532 "sipnepomukpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1535 "sipnepomukpart4.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1538 "sipnepomukpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1541 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1544 "sipnepomukpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1547 "sipnepomukpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1550 "sipnepomukpart4.cpp"


class sipNepomuk_Service : public Nepomuk::Service
{
public:
    sipNepomuk_Service(QObject *,bool);
    virtual ~sipNepomuk_Service();

    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 *);
    void sipProtect_setServiceInitialized(bool);
    Soprano::Model * sipProtect_mainModel();

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

    char sipPyMethods[7];
};

sipNepomuk_Service::sipNepomuk_Service(QObject *a0,bool a1): Nepomuk::Service(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipNepomuk_Service::metaObject() const
{
    return sip_nepomuk_qt_metaobject(sipPySelf,sipType_Nepomuk_Service);
}

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

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

    return _id;
}

void *sipNepomuk_Service::qt_metacast(const char *_clname)
{
    return (sip_nepomuk_qt_metacast && sip_nepomuk_qt_metacast(sipPySelf,sipType_Nepomuk_Service,_clname)) ? this : Nepomuk::Service::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipNepomuk_Service::sipProtect_setServiceInitialized(bool a0)
{
    Nepomuk::Service::setServiceInitialized(a0);
}

Soprano::Model * sipNepomuk_Service::sipProtect_mainModel()
{
    return Nepomuk::Service::mainModel();
}


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

    {
        sipNepomuk_Service *sipCpp;

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

#line 529 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 1822 "sipnepomukpart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_Service *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipNepomuk_Service *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipNepomuk_Service *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_Service *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_Service *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_Service *sipCpp;

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

    return NULL;
}


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

    {
        bool a0;
        sipNepomuk_Service *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Nepomuk_Service, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setServiceInitialized(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_Service, sipName_setServiceInitialized, NULL);

    return NULL;
}


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

    {
        sipNepomuk_Service *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_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_Service, sipName_mainModel, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Service)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;
        bool a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Service[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Nepomuk_Service_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Nepomuk_Service_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Nepomuk_Service_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Nepomuk_Service_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mainModel), meth_Nepomuk_Service_mainModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Nepomuk_Service_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Nepomuk_Service_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setServiceInitialized), meth_Nepomuk_Service_setServiceInitialized, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Nepomuk_Service_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Service = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Service,
        {0}
    },
    {
        sipNameNr_Service,
        {4, 255, 0},
        9, methods_Nepomuk_Service,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Service,
    0,
    init_Nepomuk_Service,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Service,
    0,
    0,
    0,
    release_Nepomuk_Service,
    cast_Nepomuk_Service,
    0,
    0,
    0
},
    &Nepomuk::Service::staticMetaObject,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/nepomukmassupdatejob.sip"
#include <nepomuk/nepomukmassupdatejob.h>
#line 2209 "sipnepomukpart4.cpp"

#line 39 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2213 "sipnepomukpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2216 "sipnepomukpart4.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 2219 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2222 "sipnepomukpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2225 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 2228 "sipnepomukpart4.cpp"
#line 205 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 2232 "sipnepomukpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2235 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 2238 "sipnepomukpart4.cpp"
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 2241 "sipnepomukpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2244 "sipnepomukpart4.cpp"
#line 673 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/typedefs.sip"
#include <qpair.h>
#line 2247 "sipnepomukpart4.cpp"
#line 82 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2250 "sipnepomukpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kjob.sip"
#include <kjob.h>
#line 2253 "sipnepomukpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/kdecore/kjobuidelegate.sip"
#include <kjobuidelegate.h>
#line 2256 "sipnepomukpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2259 "sipnepomukpart4.cpp"
#line 315 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2262 "sipnepomukpart4.cpp"
#line 303 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2265 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2268 "sipnepomukpart4.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2271 "sipnepomukpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2274 "sipnepomukpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2277 "sipnepomukpart4.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2280 "sipnepomukpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2283 "sipnepomukpart4.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2286 "sipnepomukpart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2289 "sipnepomukpart4.cpp"


class sipNepomuk_MassUpdateJob : public Nepomuk::MassUpdateJob
{
public:
    sipNepomuk_MassUpdateJob(QObject *);
    virtual ~sipNepomuk_MassUpdateJob();

    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 *);
    void sipProtect_setCapabilities(KJob::Capabilities);
    void sipProtect_setError(int);
    void sipProtect_setErrorText(const QString&);
    void sipProtect_setProcessedAmount(KJob::Unit,qulonglong);
    void sipProtect_setTotalAmount(KJob::Unit,qulonglong);
    void sipProtect_setPercent(unsigned long);
    void sipProtect_emitResult();
    void sipProtect_emitPercent(qulonglong,qulonglong);
    void sipProtect_emitSpeed(unsigned long);
    bool sipProtectVirt_doKill(bool);
    bool sipProtectVirt_doSuspend(bool);
    bool sipProtectVirt_doResume(bool);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[12];
};

sipNepomuk_MassUpdateJob::sipNepomuk_MassUpdateJob(QObject *a0): Nepomuk::MassUpdateJob(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipNepomuk_MassUpdateJob::metaObject() const
{
    return sip_nepomuk_qt_metaobject(sipPySelf,sipType_Nepomuk_MassUpdateJob);
}

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

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

    return _id;
}

void *sipNepomuk_MassUpdateJob::qt_metacast(const char *_clname)
{
    return (sip_nepomuk_qt_metacast && sip_nepomuk_qt_metacast(sipPySelf,sipType_Nepomuk_MassUpdateJob,_clname)) ? this : Nepomuk::MassUpdateJob::qt_metacast(_clname);
}

void sipNepomuk_MassUpdateJob::start()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        Nepomuk::MassUpdateJob::start();
        return;
    }

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

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

bool sipNepomuk_MassUpdateJob::doKill()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Nepomuk::MassUpdateJob::doKill();

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

    return ((sipVH_QtCore_7)(sipModuleAPI_nepomuk_QtCore->em_virthandlers[7]))(sipGILState,meth);
}

bool sipNepomuk_MassUpdateJob::doSuspend()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_doSuspend);

    if (!meth)
        return Nepomuk::MassUpdateJob::doSuspend();

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

    return ((sipVH_QtCore_7)(sipModuleAPI_nepomuk_QtCore->em_virthandlers[7]))(sipGILState,meth);
}

bool sipNepomuk_MassUpdateJob::doResume()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_doResume);

    if (!meth)
        return Nepomuk::MassUpdateJob::doResume();

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

    return ((sipVH_QtCore_7)(sipModuleAPI_nepomuk_QtCore->em_virthandlers[7]))(sipGILState,meth);
}

QString sipNepomuk_MassUpdateJob::errorString() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KJob::errorString();

    typedef QString (*sipVH_QtCore_62)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_62)(sipModuleAPI_nepomuk_QtCore->em_virthandlers[62]))(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void sipNepomuk_MassUpdateJob::sipProtect_setCapabilities(KJob::Capabilities a0)
{
    KJob::setCapabilities(a0);
}

void sipNepomuk_MassUpdateJob::sipProtect_setError(int a0)
{
    KJob::setError(a0);
}

void sipNepomuk_MassUpdateJob::sipProtect_setErrorText(const QString& a0)
{
    KJob::setErrorText(a0);
}

void sipNepomuk_MassUpdateJob::sipProtect_setProcessedAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setProcessedAmount(a0,a1);
}

void sipNepomuk_MassUpdateJob::sipProtect_setTotalAmount(KJob::Unit a0,qulonglong a1)
{
    KJob::setTotalAmount(a0,a1);
}

void sipNepomuk_MassUpdateJob::sipProtect_setPercent(unsigned long a0)
{
    KJob::setPercent(a0);
}

void sipNepomuk_MassUpdateJob::sipProtect_emitResult()
{
    KJob::emitResult();
}

void sipNepomuk_MassUpdateJob::sipProtect_emitPercent(qulonglong a0,qulonglong a1)
{
    KJob::emitPercent(a0,a1);
}

void sipNepomuk_MassUpdateJob::sipProtect_emitSpeed(unsigned long a0)
{
    KJob::emitSpeed(a0);
}

bool sipNepomuk_MassUpdateJob::sipProtectVirt_doKill(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Nepomuk::MassUpdateJob::doKill() : doKill());
}

bool sipNepomuk_MassUpdateJob::sipProtectVirt_doSuspend(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Nepomuk::MassUpdateJob::doSuspend() : doSuspend());
}

bool sipNepomuk_MassUpdateJob::sipProtectVirt_doResume(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? Nepomuk::MassUpdateJob::doResume() : doResume());
}


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

    {
        sipNepomuk_MassUpdateJob *sipCpp;

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

#line 529 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 2704 "sipnepomukpart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_MassUpdateJob *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipNepomuk_MassUpdateJob *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipNepomuk_MassUpdateJob *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipNepomuk_MassUpdateJob *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_MassUpdateJob *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipNepomuk_MassUpdateJob *sipCpp;

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

    return NULL;
}


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

    {
        KJob::Capabilities * a0;
        int a0State = 0;
        sipNepomuk_MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, sipType_KJob_Capabilities, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setCapabilities(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KJob_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        sipNepomuk_MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(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_MassUpdateJob, sipName_setError, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        sipNepomuk_MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setErrorText(*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_MassUpdateJob, sipName_setErrorText, NULL);

    return NULL;
}


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

    {
        KJob::Unit a0;
        qulonglong a1;
        sipNepomuk_MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setProcessedAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KJob::Unit a0;
        qulonglong a1;
        sipNepomuk_MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEo", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, sipType_KJob_Unit, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setTotalAmount(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        sipNepomuk_MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPercent(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_MassUpdateJob, sipName_setPercent, NULL);

    return NULL;
}


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

    {
        sipNepomuk_MassUpdateJob *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        qulonglong a0;
        qulonglong a1;
        sipNepomuk_MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Boo", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitPercent(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        unsigned long a0;
        sipNepomuk_MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_emitSpeed(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_MassUpdateJob, sipName_emitSpeed, NULL);

    return NULL;
}


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

    {
        const KUrl::List * a0;
        Nepomuk::MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, sipType_KUrl_List, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFiles(*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_MassUpdateJob, sipName_setFiles, NULL);

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<QPair<QUrl,Nepomuk::Variant> > * a0;
        int a0State = 0;
        Nepomuk::MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp, sipType_QList_0600QPair_0100QUrl_0100Nepomuk_Variant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setProperties(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<QPair<QUrl,Nepomuk::Variant> > *>(a0),sipType_QList_0600QPair_0100QUrl_0100Nepomuk_Variant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::MassUpdateJob *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_MassUpdateJob, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Nepomuk::MassUpdateJob::start() : sipCpp->start());
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QList_0100Nepomuk_Resource,&a0, &a0State, sipType_QList_0100Nepomuk_Tag,&a1, &a1State))
        {
            Nepomuk::MassUpdateJob *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::MassUpdateJob::tagResources(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);
            sipReleaseType(const_cast<QList<Nepomuk::Tag> *>(a1),sipType_QList_0100Nepomuk_Tag,a1State);

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::MassUpdateJob::rateResources(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::MassUpdateJob::commentResources(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Resource> *>(a0),sipType_QList_0100Nepomuk_Resource,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        sipNepomuk_MassUpdateJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doKill(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipNepomuk_MassUpdateJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doSuspend(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        sipNepomuk_MassUpdateJob *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_doResume(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_MassUpdateJob)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KJob)->ctd_cast((KJob *)(Nepomuk::MassUpdateJob *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Nepomuk_MassUpdateJob[] = {{88, 4, 1}};


static PyMethodDef methods_Nepomuk_MassUpdateJob[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Nepomuk_MassUpdateJob_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commentResources), meth_Nepomuk_MassUpdateJob_commentResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Nepomuk_MassUpdateJob_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Nepomuk_MassUpdateJob_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Nepomuk_MassUpdateJob_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doKill), meth_Nepomuk_MassUpdateJob_doKill, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doResume), meth_Nepomuk_MassUpdateJob_doResume, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doSuspend), meth_Nepomuk_MassUpdateJob_doSuspend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitPercent), meth_Nepomuk_MassUpdateJob_emitPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitResult), meth_Nepomuk_MassUpdateJob_emitResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_emitSpeed), meth_Nepomuk_MassUpdateJob_emitSpeed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rateResources), meth_Nepomuk_MassUpdateJob_rateResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Nepomuk_MassUpdateJob_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Nepomuk_MassUpdateJob_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_Nepomuk_MassUpdateJob_setCapabilities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Nepomuk_MassUpdateJob_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setErrorText), meth_Nepomuk_MassUpdateJob_setErrorText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFiles), meth_Nepomuk_MassUpdateJob_setFiles, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPercent), meth_Nepomuk_MassUpdateJob_setPercent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProcessedAmount), meth_Nepomuk_MassUpdateJob_setProcessedAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setProperties), meth_Nepomuk_MassUpdateJob_setProperties, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResources), meth_Nepomuk_MassUpdateJob_setResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTotalAmount), meth_Nepomuk_MassUpdateJob_setTotalAmount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Nepomuk_MassUpdateJob_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagResources), meth_Nepomuk_MassUpdateJob_tagResources, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Nepomuk_MassUpdateJob_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_MassUpdateJob = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__MassUpdateJob,
        {0}
    },
    {
        sipNameNr_MassUpdateJob,
        {4, 255, 0},
        26, methods_Nepomuk_MassUpdateJob,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_MassUpdateJob,
    0,
    init_Nepomuk_MassUpdateJob,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_MassUpdateJob,
    0,
    0,
    0,
    release_Nepomuk_MassUpdateJob,
    cast_Nepomuk_MassUpdateJob,
    0,
    0,
    0
},
    &Nepomuk::MassUpdateJob::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 3592 "sipnepomukpart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 3596 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3599 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 3602 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 3605 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 3608 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 3611 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 3614 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 3617 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 3620 "sipnepomukpart4.cpp"


class sipNepomuk_Query_NegationTerm : public Nepomuk::Query::NegationTerm
{
public:
    sipNepomuk_Query_NegationTerm();
    sipNepomuk_Query_NegationTerm(const Nepomuk::Query::NegationTerm&);
    ~sipNepomuk_Query_NegationTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_NegationTerm::sipNepomuk_Query_NegationTerm(): Nepomuk::Query::NegationTerm(), sipPySelf(0)
{
}

sipNepomuk_Query_NegationTerm::sipNepomuk_Query_NegationTerm(const Nepomuk::Query::NegationTerm& a0): Nepomuk::Query::NegationTerm(a0), sipPySelf(0)
{
}

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


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(Nepomuk::Query::NegationTerm::negateTerm(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_NegationTerm)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Query_SimpleTerm)->ctd_cast((Nepomuk::Query::SimpleTerm *)(Nepomuk::Query::NegationTerm *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_NegationTerm[] = {
    {SIP_MLNAME_CAST(sipName_negateTerm), meth_Nepomuk_Query_NegationTerm_negateTerm, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_NegationTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__NegationTerm,
        {0}
    },
    {
        sipNameNr_NegationTerm,
        {7, 255, 0},
        1, methods_Nepomuk_Query_NegationTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_NegationTerm,
    0,
    init_Nepomuk_Query_NegationTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_NegationTerm,
    assign_Nepomuk_Query_NegationTerm,
    array_Nepomuk_Query_NegationTerm,
    copy_Nepomuk_Query_NegationTerm,
    release_Nepomuk_Query_NegationTerm,
    cast_Nepomuk_Query_NegationTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 3842 "sipnepomukpart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/soprano/literalvalue.sip"
#include <soprano/literalvalue.h>
#line 3846 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 3849 "sipnepomukpart4.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3852 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 3855 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 3858 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 3861 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 3864 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 3867 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 3870 "sipnepomukpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.5.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 3873 "sipnepomukpart4.cpp"


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

    {
        Nepomuk::Query::LiteralTerm *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(sipCpp->value());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Soprano::LiteralValue * a0;
        Nepomuk::Query::LiteralTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_LiteralTerm, &sipCpp, sipType_Soprano_LiteralValue, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*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_LiteralTerm, sipName_setValue, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_LiteralTerm)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

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

            return sipCpp;
        }
    }

    {
        const Soprano::LiteralValue& a0def = Soprano::LiteralValue();
        const Soprano::LiteralValue * a0 = &a0def;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_LiteralTerm[] = {
    {SIP_MLNAME_CAST(sipName_setValue), meth_Nepomuk_Query_LiteralTerm_setValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_Nepomuk_Query_LiteralTerm_value, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_LiteralTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__LiteralTerm,
        {0}
    },
    {
        sipNameNr_LiteralTerm,
        {7, 255, 0},
        2, methods_Nepomuk_Query_LiteralTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_LiteralTerm,
    0,
    init_Nepomuk_Query_LiteralTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_LiteralTerm,
    assign_Nepomuk_Query_LiteralTerm,
    array_Nepomuk_Query_LiteralTerm,
    copy_Nepomuk_Query_LiteralTerm,
    release_Nepomuk_Query_LiteralTerm,
    cast_Nepomuk_Query_LiteralTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};
