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

#include "sipAPInepomuk.h"

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

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 37 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 40 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 49 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"


class sipNepomuk_Query_SimpleTerm : public Nepomuk::Query::SimpleTerm
{
public:
    sipNepomuk_Query_SimpleTerm(const Nepomuk::Query::Term&);
    sipNepomuk_Query_SimpleTerm(const Nepomuk::Query::SimpleTerm&);
    ~sipNepomuk_Query_SimpleTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_SimpleTerm::sipNepomuk_Query_SimpleTerm(const Nepomuk::Query::Term& a0): Nepomuk::Query::SimpleTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_SimpleTerm::sipNepomuk_Query_SimpleTerm(const Nepomuk::Query::SimpleTerm& a0): Nepomuk::Query::SimpleTerm(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Query::SimpleTerm *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Query_SimpleTerm, &sipCpp))
        {
            Nepomuk::Query::Term *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Term(sipCpp->subTerm());
            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_SimpleTerm, sipName_subTerm, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_SimpleTerm, &sipCpp, sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSubTerm(*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_SimpleTerm, sipName_setSubTerm, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_SimpleTerm)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_SimpleTerm[] = {
    {SIP_MLNAME_CAST(sipName_setSubTerm), meth_Nepomuk_Query_SimpleTerm_setSubTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subTerm), meth_Nepomuk_Query_SimpleTerm_subTerm, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_SimpleTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__SimpleTerm,
        {0}
    },
    {
        sipNameNr_SimpleTerm,
        {6, 255, 0},
        2, methods_Nepomuk_Query_SimpleTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_SimpleTerm,
    0,
    init_Nepomuk_Query_SimpleTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_SimpleTerm,
    0,
    0,
    0,
    release_Nepomuk_Query_SimpleTerm,
    cast_Nepomuk_Query_SimpleTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 280 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"

#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 284 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 287 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 290 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 293 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 296 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 299 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 302 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"


class sipNepomuk_Types_Class : public Nepomuk::Types::Class
{
public:
    sipNepomuk_Types_Class();
    sipNepomuk_Types_Class(const QUrl&);
    sipNepomuk_Types_Class(const Nepomuk::Types::Class&);
    ~sipNepomuk_Types_Class();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Types_Class::sipNepomuk_Types_Class(): Nepomuk::Types::Class(), sipPySelf(0)
{
}

sipNepomuk_Types_Class::sipNepomuk_Types_Class(const QUrl& a0): Nepomuk::Types::Class(a0), sipPySelf(0)
{
}

sipNepomuk_Types_Class::sipNepomuk_Types_Class(const Nepomuk::Types::Class& a0): Nepomuk::Types::Class(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Types::Class *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->rangeOf());
            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_Class, sipName_rangeOf, NULL);

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Property>(sipCpp->domainOf());
            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_Class, sipName_domainOf, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Types_Class, &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_Class, sipName_findPropertyByName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_findPropertyByLabel(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_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::Class *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Nepomuk_Types_Class, &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_Class, sipName_findPropertyByLabel, NULL);

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Class>(sipCpp->parentClasses());
            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_Class, sipName_parentClasses, NULL);

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Class>(sipCpp->subClasses());
            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_Class, sipName_subClasses, NULL);

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Class>(sipCpp->allParentClasses());
            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_Class, sipName_allParentClasses, NULL);

    return NULL;
}


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

    {
        Nepomuk::Types::Class *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Types::Class>(sipCpp->allSubClasses());
            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_Class, sipName_allSubClasses, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Types_Class, &sipCpp, sipType_Nepomuk_Types_Class, &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_Class, sipName_isParentOf, NULL);

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Types_Class)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Types_Class[] = {
    {SIP_MLNAME_CAST(sipName_allParentClasses), meth_Nepomuk_Types_Class_allParentClasses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allSubClasses), meth_Nepomuk_Types_Class_allSubClasses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_domainOf), meth_Nepomuk_Types_Class_domainOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findPropertyByLabel), meth_Nepomuk_Types_Class_findPropertyByLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_findPropertyByName), meth_Nepomuk_Types_Class_findPropertyByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isParentOf), meth_Nepomuk_Types_Class_isParentOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSubClassOf), meth_Nepomuk_Types_Class_isSubClassOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentClasses), meth_Nepomuk_Types_Class_parentClasses, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rangeOf), meth_Nepomuk_Types_Class_rangeOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subClasses), meth_Nepomuk_Types_Class_subClasses, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Types_Class = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Types__Class,
        {0}
    },
    {
        sipNameNr_Class,
        {47, 255, 0},
        10, methods_Nepomuk_Types_Class,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Types_Class,
    0,
    init_Nepomuk_Types_Class,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Types_Class,
    assign_Nepomuk_Types_Class,
    array_Nepomuk_Types_Class,
    copy_Nepomuk_Types_Class,
    release_Nepomuk_Types_Class,
    cast_Nepomuk_Types_Class,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 808 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 812 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 815 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"


class sipNepomuk_Types_Entity : public Nepomuk::Types::Entity
{
public:
    sipNepomuk_Types_Entity(const Nepomuk::Types::Entity&);
    sipNepomuk_Types_Entity();
    ~sipNepomuk_Types_Entity();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Types_Entity::sipNepomuk_Types_Entity(const Nepomuk::Types::Entity& a0): Nepomuk::Types::Entity(a0), sipPySelf(0)
{
}

sipNepomuk_Types_Entity::sipNepomuk_Types_Entity(): Nepomuk::Types::Entity(), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Types::Entity *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Entity *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Entity *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QIcon(sipCpp->icon());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Entity *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Types::Entity *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAvailable();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0 = 0;
        Nepomuk::Types::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Nepomuk_Types_Entity, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->reset(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_Entity, sipName_reset, NULL);

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Types::Entity *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->userVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QUrl * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QUrl * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Types_Entity[] = {
    {SIP_MLNAME_CAST(sipName_comment), meth_Nepomuk_Types_Entity_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_icon), meth_Nepomuk_Types_Entity_icon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAvailable), meth_Nepomuk_Types_Entity_isAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Types_Entity_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_label), meth_Nepomuk_Types_Entity_label, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_Nepomuk_Types_Entity_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_Nepomuk_Types_Entity_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uri), meth_Nepomuk_Types_Entity_uri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_userVisible), meth_Nepomuk_Types_Entity_userVisible, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Types_Entity = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Types__Entity,
        {0}
    },
    {
        sipNameNr_Entity,
        {47, 255, 0},
        9, methods_Nepomuk_Types_Entity,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Types_Entity,
    init_Nepomuk_Types_Entity,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Types_Entity,
    0,
    0,
    0,
    release_Nepomuk_Types_Entity,
    cast_Nepomuk_Types_Entity,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 1347 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Types_Entity, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::Types::qHash(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


static PyMethodDef methods_Nepomuk_Types[] = {
    {SIP_MLNAME_CAST(sipName_qHash), meth_Nepomuk_Types_qHash, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Types = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Nepomuk__Types,
        {0}
    },
    {
        sipNameNr_Types,
        {2, 255, 0},
        1, methods_Nepomuk_Types,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 1434 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 1438 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1441 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 1444 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 1447 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1450 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 1453 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 1456 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 1459 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 1462 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 1465 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 1468 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 1471 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"


class sipNepomuk_Query_AndTerm : public Nepomuk::Query::AndTerm
{
public:
    sipNepomuk_Query_AndTerm();
    sipNepomuk_Query_AndTerm(const Nepomuk::Query::AndTerm&);
    sipNepomuk_Query_AndTerm(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_AndTerm(const QList<Nepomuk::Query::Term>&);
    ~sipNepomuk_Query_AndTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(): Nepomuk::Query::AndTerm(), sipPySelf(0)
{
}

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(const Nepomuk::Query::AndTerm& a0): Nepomuk::Query::AndTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_AndTerm::sipNepomuk_Query_AndTerm(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::AndTerm(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
}

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

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


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

    if (targetType == sipType_Nepomuk_Query_AndTerm)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Nepomuk_Query_AndTerm, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Query_AndTerm(*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_AndTerm(*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_AndTerm(*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_AndTerm[] = {{16, 255, 1}};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_AndTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__AndTerm,
        {0}
    },
    {
        sipNameNr_AndTerm,
        {6, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_AndTerm,
    0,
    init_Nepomuk_Query_AndTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_AndTerm,
    assign_Nepomuk_Query_AndTerm,
    array_Nepomuk_Query_AndTerm,
    copy_Nepomuk_Query_AndTerm,
    release_Nepomuk_Query_AndTerm,
    cast_Nepomuk_Query_AndTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/groupterm.sip"
#include <nepomuk/groupterm.h>
#line 1712 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 1716 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1719 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 1722 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 1725 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1728 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/optionalterm.sip"
#include <nepomuk/optionalterm.h>
#line 1731 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 1734 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 1737 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 1740 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 1743 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 1746 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 1749 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 1752 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"


class sipNepomuk_Query_GroupTerm : public Nepomuk::Query::GroupTerm
{
public:
    sipNepomuk_Query_GroupTerm(const Nepomuk::Query::Term&);
    sipNepomuk_Query_GroupTerm(const Nepomuk::Query::GroupTerm&);
    ~sipNepomuk_Query_GroupTerm();

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Query_GroupTerm::sipNepomuk_Query_GroupTerm(const Nepomuk::Query::Term& a0): Nepomuk::Query::GroupTerm(a0), sipPySelf(0)
{
}

sipNepomuk_Query_GroupTerm::sipNepomuk_Query_GroupTerm(const Nepomuk::Query::GroupTerm& a0): Nepomuk::Query::GroupTerm(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Query::GroupTerm *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Query::Term>(sipCpp->subTerms());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Query_GroupTerm, &sipCpp, sipType_QList_0100Nepomuk_Query_Term,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSubTerms(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Nepomuk::Query::Term> *>(a0),sipType_QList_0100Nepomuk_Query_Term,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Query_GroupTerm, &sipCpp, sipType_Nepomuk_Query_Term, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addSubTerm(*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_GroupTerm, sipName_addSubTerm, NULL);

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Query_GroupTerm)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_GroupTerm[] = {
    {SIP_MLNAME_CAST(sipName_addSubTerm), meth_Nepomuk_Query_GroupTerm_addSubTerm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSubTerms), meth_Nepomuk_Query_GroupTerm_setSubTerms, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subTerms), meth_Nepomuk_Query_GroupTerm_subTerms, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_GroupTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__GroupTerm,
        {0}
    },
    {
        sipNameNr_GroupTerm,
        {6, 255, 0},
        3, methods_Nepomuk_Query_GroupTerm,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Query_GroupTerm,
    0,
    init_Nepomuk_Query_GroupTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_GroupTerm,
    0,
    0,
    0,
    release_Nepomuk_Query_GroupTerm,
    cast_Nepomuk_Query_GroupTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 2014 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 2017 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 2020 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"


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

    {
        const QDate * a0;
        int a0State = 0;
        const QDate * a1;
        int a1State = 0;
        Nepomuk::Query::DateRangeFlags a2def = Nepomuk::Query::AllDates;
        Nepomuk::Query::DateRangeFlags * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QDate, &a0, &a0State, sipType_QDate, &a1, &a1State, sipType_Nepomuk_Query_DateRangeFlags, &a2, &a2State))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(Nepomuk::Query::dateRangeQuery(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);
            sipReleaseType(const_cast<QDate *>(a1),sipType_QDate,a1State);
            sipReleaseType(a2,sipType_Nepomuk_Query_DateRangeFlags,a2State);

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::StandardQuery a0;
        const Nepomuk::Query::Term& a1def = Nepomuk::Query::Term();
        const Nepomuk::Query::Term * a1 = &a1def;

        if (sipParseArgs(&sipParseErr, sipArgs, "E|J9", sipType_Nepomuk_Query_StandardQuery, &a0, sipType_Nepomuk_Query_Term, &a1))
        {
            Nepomuk::Query::Query *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Query::Query(Nepomuk::Query::standardQuery(a0,*a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Query_Query, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::Query::qHash(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Query_Term, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::Query::qHash(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


static PyMethodDef methods_Nepomuk_Query[] = {
    {SIP_MLNAME_CAST(sipName_dateRangeQuery), meth_Nepomuk_Query_dateRangeQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_qHash), meth_Nepomuk_Query_qHash, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_standardQuery), meth_Nepomuk_Query_standardQuery, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk_Query[] = {
    {sipName_AllDates, Nepomuk::Query::AllDates, 11},
    {sipName_ContentDate, Nepomuk::Query::ContentDate, 11},
    {sipName_LastModifiedFilesQuery, Nepomuk::Query::LastModifiedFilesQuery, 35},
    {sipName_ModificationDate, Nepomuk::Query::ModificationDate, 11},
    {sipName_MostImportantResourcesQuery, Nepomuk::Query::MostImportantResourcesQuery, 35},
    {sipName_NeverOpenedFilesQuery, Nepomuk::Query::NeverOpenedFilesQuery, 35},
    {sipName_ResourcesForActivityQuery, Nepomuk::Query::ResourcesForActivityQuery, 35},
    {sipName_UsageDate, Nepomuk::Query::UsageDate, 11},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Nepomuk__Query,
        {0}
    },
    {
        sipNameNr_Query,
        {2, 255, 0},
        3, methods_Nepomuk_Query,
        8, enummembers_Nepomuk_Query,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2201 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2204 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 46 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 2207 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2210 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2213 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 2216 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/nepomuk/sipnepomukpart7.cpp"


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

    {
        const Soprano::Node * a0;

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

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

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

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

    return NULL;
}


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

    {
        const Nepomuk::Variant * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Variant, &a0))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Nepomuk::valueToRDFNode(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Nepomuk::Variant * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Variant, &a0))
        {
            QList<Soprano::Node> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Node>(Nepomuk::valuesToRDFNodes(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Nepomuk_Resource, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::qHash(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ErrorCode a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::errorString(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QUrl, &a0))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Nepomuk::extractNamespace(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


static PyMethodDef methods_Nepomuk[] = {
    {SIP_MLNAME_CAST(sipName_RDFLiteralToValue), meth_Nepomuk_RDFLiteralToValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorString), meth_Nepomuk_errorString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_extractNamespace), meth_Nepomuk_extractNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_qHash), meth_Nepomuk_qHash, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_valueToRDFNode), meth_Nepomuk_valueToRDFNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_valuesToRDFNodes), meth_Nepomuk_valuesToRDFNodes, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Nepomuk[] = {
    {sipName_CommunicationError, Nepomuk::CommunicationError, 3},
    {sipName_InvalidType, Nepomuk::InvalidType, 3},
    {sipName_NoError, Nepomuk::NoError, 3},
    {sipName_UnknownError, Nepomuk::UnknownError, 3},
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Nepomuk,
        {0}
    },
    {
        sipNameNr_Nepomuk,
        {0, 0, 1},
        6, methods_Nepomuk,
        4, enummembers_Nepomuk,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
