/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:20:56 2009
 */

#include "sipAPInepomuk.h"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/class.sip"
#include <nepomuk/class.h>
#line 12 "sipnepomukpart6.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 16 "sipnepomukpart6.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 31 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/property.sip"
#include <nepomuk/property.h>
#line 34 "sipnepomukpart6.cpp"
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 37 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 40 "sipnepomukpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 43 "sipnepomukpart6.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 46 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 49 "sipnepomukpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 52 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 55 "sipnepomukpart6.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 58 "sipnepomukpart6.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)
{
    int sipArgsParsed = 0;

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Nepomuk_Types_Property,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_domainOf(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_domainOf(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Nepomuk_Types_Property,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_findPropertyByName(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_findPropertyByName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Class,sipName_findPropertyByName);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_findPropertyByLabel(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_findPropertyByLabel(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Class,sipName_findPropertyByLabel);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_parentClasses(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_parentClasses(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Nepomuk_Types_Class,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_subClasses(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_subClasses(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Nepomuk_Types_Class,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_allParentClasses(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_allParentClasses(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Nepomuk_Types_Class,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_allSubClasses(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_allSubClasses(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Nepomuk::Types::Class *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Nepomuk_Types_Class,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_isParentOf(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_isParentOf(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Class,sipName_isParentOf);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_Types_Class_isSubClassOf(PyObject *, PyObject *);}
static PyObject *meth_Nepomuk_Types_Class_isSubClassOf(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Class,sipName_isSubClassOf);

    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 state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & 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 *, const void*);}
static void assign_Nepomuk_Types_Class(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Nepomuk::Types::Class *>(sipDst) = *reinterpret_cast<const Nepomuk::Types::Class *>(sipSrc);
}


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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Types_Class(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


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

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Types_Class();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QUrl * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_QUrl,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Types_Class(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Nepomuk::Types::Class * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Nepomuk_Types_Class,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Types_Class(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Nepomuk_Types_Class[] = {{15, 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 pyqt4Type_nepomuk_Nepomuk_Types_Class = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Types__Class,
        {0}
    },
    sipNameNr_Class,
    -1,
    -1,
    {13, 255, 0},
    supers_Nepomuk_Types_Class,
    0,
    10, methods_Nepomuk_Types_Class,
    0, 0,
    0, 0,
    init_Nepomuk_Types_Class,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Types_Class,
    release_Nepomuk_Types_Class,
    cast_Nepomuk_Types_Class,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Nepomuk_Types_Class,
    0,
    0,
    0
};


#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/entity.sip"
#include <nepomuk/entity.h>
#line 560 "sipnepomukpart6.cpp"


extern "C" {static PyObject *meth_Nepomuk_Types_qHash(PyObject *,PyObject *);}
static PyObject *meth_Nepomuk_Types_qHash(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_qHash);

    return NULL;
}


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


pyqt4ClassTypeDef pyqt4Type_nepomuk_Nepomuk_Types = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Nepomuk__Types,
        {0}
    },
    sipNameNr_Types,
    -1,
    -1,
    {4, 255, 0},
    0,
    0,
    1, methods_Nepomuk_Types,
    0, 0,
    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, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 643 "sipnepomukpart6.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 664 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 667 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 670 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 673 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 676 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 679 "sipnepomukpart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 682 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 685 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 688 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 691 "sipnepomukpart6.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 694 "sipnepomukpart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 697 "sipnepomukpart6.cpp"


extern "C" {static PyObject *meth_Nepomuk_RDFLiteralToValue(PyObject *,PyObject *);}
static PyObject *meth_Nepomuk_RDFLiteralToValue(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Node * a0;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_RDFLiteralToValue);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_valueToRDFNode(PyObject *,PyObject *);}
static PyObject *meth_Nepomuk_valueToRDFNode(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Nepomuk::Variant * a0;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_valueToRDFNode);

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_valuesToRDFNodes(PyObject *,PyObject *);}
static PyObject *meth_Nepomuk_valuesToRDFNodes(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Nepomuk::Variant * a0;

        if (sipParseArgs(&sipArgsParsed,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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Soprano_Node,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Nepomuk_errorString(PyObject *,PyObject *);}
static PyObject *meth_Nepomuk_errorString(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Nepomuk::ErrorCode a0;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_errorString);

    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_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, 5},
    {sipName_InvalidType, Nepomuk::InvalidType, 5},
    {sipName_NoError, Nepomuk::NoError, 5},
    {sipName_UnknownError, Nepomuk::UnknownError, 5},
};


pyqt4ClassTypeDef pyqt4Type_nepomuk_Nepomuk = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Nepomuk,
        {0}
    },
    sipNameNr_Nepomuk,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    4, methods_Nepomuk,
    4, enummembers_Nepomuk,
    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, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
