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

#include "sipAPInepomuk.h"

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/thing.sip"
#include <nepomuk/thing.h>
#line 12 "sipnepomukpart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 16 "sipnepomukpart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 19 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "sipnepomukpart1.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 25 "sipnepomukpart1.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 40 "sipnepomukpart1.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 43 "sipnepomukpart1.cpp"
#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 46 "sipnepomukpart1.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 49 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 52 "sipnepomukpart1.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 55 "sipnepomukpart1.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 58 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 61 "sipnepomukpart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.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 130 "/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 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 92 "sipnepomukpart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 95 "sipnepomukpart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 98 "sipnepomukpart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 101 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 104 "sipnepomukpart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 107 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 110 "sipnepomukpart1.cpp"


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

    {
        Nepomuk::Thing *sipCpp;

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Thing *sipCpp;

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Thing *sipCpp;

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Thing)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Resource)->ctd_cast((Nepomuk::Resource *)(Nepomuk::Thing *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    delete reinterpret_cast<Nepomuk::Thing *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Nepomuk_Thing(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Thing(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Nepomuk_Thing(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Nepomuk_Thing(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Nepomuk_Thing(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Nepomuk::Thing *sipCpp = 0;

    if (!sipCpp)
    {
        const QUrl& a0def = QUrl();
        const QUrl * a0 = &a0def;
        const QUrl& a1def = QUrl();
        const QUrl * a1 = &a1def;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J9J9",sipType_QUrl,&a0,sipType_QUrl,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Thing(*a0,*a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QUrl * a0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J9J8",sipType_QUrl,&a0,sipType_QUrl,&a1,sipType_Nepomuk_ResourceManager,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Thing(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
        }
    }

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1|J9",sipType_QString,&a0,&a0State,sipType_QUrl,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Thing(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J9J8",sipType_QString,&a0,&a0State,sipType_QUrl,&a1,sipType_Nepomuk_ResourceManager,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Thing(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Nepomuk_Thing,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Thing(*a0);
            Py_END_ALLOW_THREADS
        }
    }

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Nepomuk_Resource,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Nepomuk::Thing(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Nepomuk_Thing[] = {{6, 255, 1}};


static PyMethodDef methods_Nepomuk_Thing[] = {
    {SIP_MLNAME_CAST(sipName_groundingOccurrences), meth_Nepomuk_Thing_groundingOccurrences, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_occurrences), meth_Nepomuk_Thing_occurrences, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_referencingOccurrences), meth_Nepomuk_Thing_referencingOccurrences, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_nepomuk_Nepomuk_Thing = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Thing,
        {0}
    },
    sipNameNr_Thing,
    -1,
    -1,
    {4, 255, 0},
    supers_Nepomuk_Thing,
    0,
    3, methods_Nepomuk_Thing,
    0, 0,
    0, 0,
    init_Nepomuk_Thing,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Thing,
    release_Nepomuk_Thing,
    cast_Nepomuk_Thing,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#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 395 "sipnepomukpart1.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 399 "sipnepomukpart1.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 402 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 405 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 408 "sipnepomukpart1.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 423 "sipnepomukpart1.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 426 "sipnepomukpart1.cpp"
#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 429 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 432 "sipnepomukpart1.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 435 "sipnepomukpart1.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 438 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 441 "sipnepomukpart1.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/thing.sip"
#include <nepomuk/thing.h>
#line 444 "sipnepomukpart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.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 130 "/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 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 475 "sipnepomukpart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 478 "sipnepomukpart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 481 "sipnepomukpart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 484 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 487 "sipnepomukpart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 490 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 493 "sipnepomukpart1.cpp"


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

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Tag::sipNepomuk_Tag(): Nepomuk::Tag(), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(Nepomuk::ResourceManager *a0): Nepomuk::Tag(a0), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const Nepomuk::Tag& a0): Nepomuk::Tag(a0), sipPySelf(0)
{
}

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

sipNepomuk_Tag::sipNepomuk_Tag(const QString& a0): Nepomuk::Tag(a0), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QString& a0,Nepomuk::ResourceManager *a1): Nepomuk::Tag(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QUrl& a0): Nepomuk::Tag(a0), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QUrl& a0,Nepomuk::ResourceManager *a1): Nepomuk::Tag(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QString& a0,const QUrl& a1): Nepomuk::Tag(a0,a1), sipPySelf(0)
{
}

sipNepomuk_Tag::sipNepomuk_Tag(const QUrl& a0,const QUrl& a1): Nepomuk::Tag(a0,a1), sipPySelf(0)
{
}

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

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

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


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

    {
        Nepomuk::Tag *sipCpp;

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Tag>(Nepomuk::Tag::allTags());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Nepomuk::Tag::resourceTypeUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_Tag)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Nepomuk_Resource)->ctd_cast((Nepomuk::Resource *)(Nepomuk::Tag *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Tag *>(sipCppV);
    else
        delete reinterpret_cast<Nepomuk::Tag *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Nepomuk_Tag(void *, const void*);}
static void assign_Nepomuk_Tag(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Nepomuk::Tag *>(sipDst) = *reinterpret_cast<const Nepomuk::Tag *>(sipSrc);
}


extern "C" {static void dealloc_Nepomuk_Tag(sipSimpleWrapper *);}
static void dealloc_Nepomuk_Tag(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipNepomuk_Tag *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

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


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

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

    if (!sipCpp)
    {
        Nepomuk::ResourceManager * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_Nepomuk_ResourceManager,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

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

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

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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        Nepomuk::ResourceManager * a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J8",sipType_QString,&a0,&a0State,sipType_Nepomuk_ResourceManager,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

    if (!sipCpp)
    {
        const QUrl * a0;

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

    if (!sipCpp)
    {
        const QUrl * a0;
        Nepomuk::ResourceManager * a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J8",sipType_QUrl,&a0,sipType_Nepomuk_ResourceManager,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J9",sipType_QString,&a0,&a0State,sipType_QUrl,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

    if (!sipCpp)
    {
        const QUrl * a0;
        const QUrl * a1;

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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J9J8",sipType_QString,&a0,&a0State,sipType_QUrl,&a1,sipType_Nepomuk_ResourceManager,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
        }
    }

    if (!sipCpp)
    {
        const QUrl * a0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J9J8",sipType_QUrl,&a0,sipType_QUrl,&a1,sipType_Nepomuk_ResourceManager,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Nepomuk_Tag[] = {{6, 255, 1}};


static PyMethodDef methods_Nepomuk_Tag[] = {
    {SIP_MLNAME_CAST(sipName_allTags), meth_Nepomuk_Tag_allTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceTypeUri), meth_Nepomuk_Tag_resourceTypeUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagOf), meth_Nepomuk_Tag_tagOf, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_nepomuk_Nepomuk_Tag = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Tag,
        {0}
    },
    sipNameNr_Tag,
    -1,
    -1,
    {4, 255, 0},
    supers_Nepomuk_Tag,
    0,
    3, methods_Nepomuk_Tag,
    0, 0,
    0, 0,
    init_Nepomuk_Tag,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Tag,
    release_Nepomuk_Tag,
    cast_Nepomuk_Tag,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Nepomuk_Tag,
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 941 "sipnepomukpart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 945 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 948 "sipnepomukpart1.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 963 "sipnepomukpart1.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 966 "sipnepomukpart1.cpp"
#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 969 "sipnepomukpart1.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 972 "sipnepomukpart1.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 975 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 978 "sipnepomukpart1.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 981 "sipnepomukpart1.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 984 "sipnepomukpart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 987 "sipnepomukpart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 990 "sipnepomukpart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 993 "sipnepomukpart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 996 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 999 "sipnepomukpart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.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 130 "/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 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1030 "sipnepomukpart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1033 "sipnepomukpart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1036 "sipnepomukpart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1039 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1042 "sipnepomukpart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1045 "sipnepomukpart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1048 "sipnepomukpart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1051 "sipnepomukpart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1054 "sipnepomukpart1.cpp"


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

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->init();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->initialized();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Nepomuk_ResourceManager,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeResource(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            return sipResObj;
        }
    }

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

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

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

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            return sipResObj;
        }
    }

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

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

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

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

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

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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->generateUniqueUri(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

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

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_ResourceManager)
        return ptr;

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

    return NULL;
}


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


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


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


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


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