/*
 * Module code.
 *
 * Generated by SIP 4.10.2 on Sun Jul 11 10:11:26 2010
 */

#include "sipAPInepomuk.h"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 14 "sipnepomukpart3.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 20 "sipnepomukpart3.cpp"


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

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 38 "sipnepomukpart3.cpp"

            return sipRes;
        }
    }
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 316 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 66 "sipnepomukpart3.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::Query::SparqlFlags *>(a0),sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

#line 311 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 102 "sipnepomukpart3.cpp"
            sipReleaseType(const_cast<Nepomuk::Query::Query::SparqlFlags *>(a0),sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___invert__(PyObject *sipSelf);}
static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___invert__(PyObject *sipSelf)
{
    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    if (!sipCpp)
        return 0;


    {
        {
            Nepomuk::Query::Query::SparqlFlags *sipRes;

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

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


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

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

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

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

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,and_slot,NULL,sipArg0,sipArg1);
}


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

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

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

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

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,xor_slot,NULL,sipArg0,sipArg1);
}


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

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

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

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

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_nepomuk,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___int__(PyObject *sipSelf);}
static PyObject *slot_Nepomuk_Query_Query_SparqlFlags___int__(PyObject *sipSelf)
{
    Nepomuk::Query::Query::SparqlFlags *sipCpp = reinterpret_cast<Nepomuk::Query::Query::SparqlFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Query_Query_SparqlFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::Query::SparqlFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Nepomuk_Query_Query_SparqlFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::Query::SparqlFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Nepomuk_Query_Query_SparqlFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Nepomuk::Query::Query::SparqlFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Nepomuk_Query_Query_SparqlFlag)) ||
            sipCanConvertToType(sipPy, sipType_Nepomuk_Query_Query_SparqlFlags, SIP_NO_CONVERTORS));

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

    return sipGetState(sipTransferObj);
}

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

return 0;
#line 518 "sipnepomukpart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Nepomuk_Query_Query_SparqlFlags[] = {
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___bool__, bool_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___ne__, ne_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___eq__, eq_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___invert__, invert_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___and__, and_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___xor__, xor_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___or__, or_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___int__, int_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___ixor__, ixor_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___ior__, ior_slot},
    {(void *)slot_Nepomuk_Query_Query_SparqlFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Query_SparqlFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Query__SparqlFlags,
        {0}
    },
    {
        sipNameNr_SparqlFlags,
        {15, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_Query_SparqlFlags,
    init_Nepomuk_Query_Query_SparqlFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Query_SparqlFlags,
    assign_Nepomuk_Query_Query_SparqlFlags,
    array_Nepomuk_Query_Query_SparqlFlags,
    copy_Nepomuk_Query_Query_SparqlFlags,
    release_Nepomuk_Query_Query_SparqlFlags,
    cast_Nepomuk_Query_Query_SparqlFlags,
    convertTo_Nepomuk_Query_Query_SparqlFlags,
    0,
    0
},
    0,
    1,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/query.sip"
#include <nepomuk/query.h>
#line 593 "sipnepomukpart3.cpp"

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


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

    {
        Nepomuk::Query::Query::RequestProperty *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Types::Property(sipCpp->property());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Query::Query::RequestProperty *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->optional();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Query::Query::RequestProperty::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

    {
        const Nepomuk::Types::Property * a0;
        bool a1 = 1;

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Query_Query_RequestProperty[] = {
    {SIP_MLNAME_CAST(sipName_optional), meth_Nepomuk_Query_Query_RequestProperty_optional, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_property), meth_Nepomuk_Query_Query_RequestProperty_property, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_Query_RequestProperty = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__Query__RequestProperty,
        {0}
    },
    {
        sipNameNr_RequestProperty,
        {15, 255, 0},
        2, methods_Nepomuk_Query_Query_RequestProperty,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Query_Query_RequestProperty,
    init_Nepomuk_Query_Query_RequestProperty,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_Query_RequestProperty,
    0,
    0,
    0,
    release_Nepomuk_Query_Query_RequestProperty,
    cast_Nepomuk_Query_Query_RequestProperty,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/orterm.sip"
#include <nepomuk/orterm.h>
#line 857 "sipnepomukpart3.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/term.sip"
#include <nepomuk/term.h>
#line 861 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 864 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcetypeterm.sip"
#include <nepomuk/resourcetypeterm.h>
#line 867 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/comparisonterm.sip"
#include <nepomuk/comparisonterm.h>
#line 870 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/andterm.sip"
#include <nepomuk/andterm.h>
#line 873 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/negationterm.sip"
#include <nepomuk/negationterm.h>
#line 876 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourceterm.sip"
#include <nepomuk/resourceterm.h>
#line 879 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/literalterm.sip"
#include <nepomuk/literalterm.h>
#line 882 "sipnepomukpart3.cpp"


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

public:
    sipSimpleWrapper *sipPySelf;

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

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

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

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

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

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


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

    if (targetType == sipType_Nepomuk_Query_OrTerm)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Query_OrTerm = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Query__OrTerm,
        {0}
    },
    {
        sipNameNr_OrTerm,
        {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_OrTerm,
    0,
    init_Nepomuk_Query_OrTerm,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Query_OrTerm,
    assign_Nepomuk_Query_OrTerm,
    array_Nepomuk_Query_OrTerm,
    copy_Nepomuk_Query_OrTerm,
    release_Nepomuk_Query_OrTerm,
    cast_Nepomuk_Query_OrTerm,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 1123 "sipnepomukpart3.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1127 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1130 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 1133 "sipnepomukpart3.cpp"
#line 200 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 1136 "sipnepomukpart3.cpp"
#line 346 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 1139 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1142 "sipnepomukpart3.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 1145 "sipnepomukpart3.cpp"
#line 632 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1148 "sipnepomukpart3.cpp"
#line 739 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/kdecore/typedefs.sip"
#include <qlist.h>
#line 1151 "sipnepomukpart3.cpp"
#line 694 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1154 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1157 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1160 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1163 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1166 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1169 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1172 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1175 "sipnepomukpart3.cpp"


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

    {
        qlonglong a0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        double a0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QDate * a0;
        int a0State = 0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_QDate, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QTime * a0;
        int a0State = 0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_QTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QTime *>(a0),sipType_QTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QDateTime * a0;
        int a0State = 0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_QDateTime, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_QUrl, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Nepomuk::Variant * a0;
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Variant, &sipCpp, sipType_Nepomuk_Variant, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->append(*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_Variant, sipName_append, NULL);

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &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_Variant, sipName_isValid, NULL);

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->simpleType();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt64();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt64();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDouble();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isString();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDate();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDateTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUrl();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResource();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isIntList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt64List();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedIntList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt64List();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBoolList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDoubleList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isStringList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDateList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isTimeList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDateTimeList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUrlList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResourceList();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->variant());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            qlonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt64();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUnsignedInt();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            qulonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUnsignedInt64();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            double sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toDouble();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->toDate());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTime(sipCpp->toTime());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->toDateTime());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            Nepomuk::Resource *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Resource(sipCpp->toResource());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<int> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<int>(sipCpp->toIntList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<uint> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<uint>(sipCpp->toUnsignedIntList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<qreal> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<qreal>(sipCpp->toDoubleList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->toStringList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<QDate> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QDate>(sipCpp->toDateList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<QTime> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QTime>(sipCpp->toTimeList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<QDateTime> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QDateTime>(sipCpp->toDateTimeList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Nepomuk_Variant, &sipCpp))
        {
            QList<QUrl> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<QUrl>(sipCpp->toUrlList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Variant *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Variant>(sipCpp->toVariantList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        int a1;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Nepomuk::Variant(Nepomuk::Variant::fromString(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Nepomuk_Variant___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Nepomuk_Variant___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Variant *sipCpp = reinterpret_cast<Nepomuk::Variant *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Variant));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Variant * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Variant::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_Variant,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Nepomuk_Variant___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Nepomuk_Variant___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Nepomuk::Variant *sipCpp = reinterpret_cast<Nepomuk::Variant *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Nepomuk_Variant));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Nepomuk::Variant * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Nepomuk::Variant::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_Variant,sipSelf,sipArg);
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Nepomuk_Variant(SIP_SSIZE_T);}
static void *array_Nepomuk_Variant(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Variant[sipNrElem];
}


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Nepomuk::Variant * a0;

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

            return sipCpp;
        }
    }

    {
        const QVariant * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        qlonglong a0;

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

            return sipCpp;
        }
    }

    {
        double a0;

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

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QDate * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QTime * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QDateTime * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QUrl * a0;

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

            return sipCpp;
        }
    }

    {
        const Nepomuk::Resource * a0;

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

            return sipCpp;
        }
    }

    {
        const QList<int> * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QList<uint> * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QList<qreal> * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QStringList * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QList<QDate> * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QList<QTime> * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QList<QDateTime> * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QList<QUrl> * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Variant[] = {
    {SIP_MLNAME_CAST(sipName_append), meth_Nepomuk_Variant_append, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromString), meth_Nepomuk_Variant_fromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBool), meth_Nepomuk_Variant_isBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBoolList), meth_Nepomuk_Variant_isBoolList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDate), meth_Nepomuk_Variant_isDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDateList), meth_Nepomuk_Variant_isDateList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDateTime), meth_Nepomuk_Variant_isDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDateTimeList), meth_Nepomuk_Variant_isDateTimeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDouble), meth_Nepomuk_Variant_isDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDoubleList), meth_Nepomuk_Variant_isDoubleList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt), meth_Nepomuk_Variant_isInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt64), meth_Nepomuk_Variant_isInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt64List), meth_Nepomuk_Variant_isInt64List, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isIntList), meth_Nepomuk_Variant_isIntList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isList), meth_Nepomuk_Variant_isList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResource), meth_Nepomuk_Variant_isResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResourceList), meth_Nepomuk_Variant_isResourceList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isString), meth_Nepomuk_Variant_isString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isStringList), meth_Nepomuk_Variant_isStringList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTime), meth_Nepomuk_Variant_isTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTimeList), meth_Nepomuk_Variant_isTimeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt), meth_Nepomuk_Variant_isUnsignedInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt64), meth_Nepomuk_Variant_isUnsignedInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt64List), meth_Nepomuk_Variant_isUnsignedInt64List, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedIntList), meth_Nepomuk_Variant_isUnsignedIntList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUrl), meth_Nepomuk_Variant_isUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUrlList), meth_Nepomuk_Variant_isUrlList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Nepomuk_Variant_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_simpleType), meth_Nepomuk_Variant_simpleType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toBool), meth_Nepomuk_Variant_toBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDate), meth_Nepomuk_Variant_toDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDateList), meth_Nepomuk_Variant_toDateList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDateTime), meth_Nepomuk_Variant_toDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDateTimeList), meth_Nepomuk_Variant_toDateTimeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDouble), meth_Nepomuk_Variant_toDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDoubleList), meth_Nepomuk_Variant_toDoubleList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt), meth_Nepomuk_Variant_toInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt64), meth_Nepomuk_Variant_toInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toIntList), meth_Nepomuk_Variant_toIntList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toResource), meth_Nepomuk_Variant_toResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toResourceList), meth_Nepomuk_Variant_toResourceList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Nepomuk_Variant_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toStringList), meth_Nepomuk_Variant_toStringList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTime), meth_Nepomuk_Variant_toTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTimeList), meth_Nepomuk_Variant_toTimeList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedInt), meth_Nepomuk_Variant_toUnsignedInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedInt64), meth_Nepomuk_Variant_toUnsignedInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedIntList), meth_Nepomuk_Variant_toUnsignedIntList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUrl), meth_Nepomuk_Variant_toUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUrlList), meth_Nepomuk_Variant_toUrlList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toVariantList), meth_Nepomuk_Variant_toVariantList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Nepomuk_Variant_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variant), meth_Nepomuk_Variant_variant, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_nepomuk_Nepomuk_Variant = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Variant,
        {0}
    },
    {
        sipNameNr_Variant,
        {4, 255, 0},
        53, methods_Nepomuk_Variant,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Nepomuk_Variant,
    init_Nepomuk_Variant,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Variant,
    assign_Nepomuk_Variant,
    array_Nepomuk_Variant,
    copy_Nepomuk_Variant,
    release_Nepomuk_Variant,
    cast_Nepomuk_Variant,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/thing.sip"
#include <nepomuk/thing.h>
#line 3289 "sipnepomukpart3.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3293 "sipnepomukpart3.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 3296 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3299 "sipnepomukpart3.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 3302 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3305 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3308 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 3311 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3314 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 3317 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 3320 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 3323 "sipnepomukpart3.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3326 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3329 "sipnepomukpart3.cpp"


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

public:
    sipSimpleWrapper *sipPySelf;

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

sipNepomuk_Thing::sipNepomuk_Thing(const QUrl& a0,const QUrl& a1): Nepomuk::Thing(a0,a1), sipPySelf(0)
{
}

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

sipNepomuk_Thing::sipNepomuk_Thing(const QString& a0,const QUrl& a1): Nepomuk::Thing(a0,a1), sipPySelf(0)
{
}

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

sipNepomuk_Thing::sipNepomuk_Thing(const Nepomuk::Thing& a0): Nepomuk::Thing(a0), sipPySelf(0)
{
}

sipNepomuk_Thing::sipNepomuk_Thing(const Nepomuk::Resource& a0): Nepomuk::Thing(a0), sipPySelf(0)
{
}

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


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

    {
        Nepomuk::Thing *sipCpp;

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Thing *sipCpp;

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

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

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

    return NULL;
}


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

    {
        Nepomuk::Thing *sipCpp;

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

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

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

    return NULL;
}


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

    {
        const Nepomuk::Resource * a0;
        Nepomuk::Thing *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Nepomuk_Thing, &sipCpp, sipType_Nepomuk_Resource, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addGroundingOccurrence(*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_Thing, sipName_addGroundingOccurrence, NULL);

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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipNepomuk_Thing *>(sipCppV);
    else
        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 (sipIsDerived(sipSelf))
        reinterpret_cast<sipNepomuk_Thing *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

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


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

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J9J9", sipType_QUrl, &a0, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Thing(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9J8", sipType_QUrl, &a0, sipType_QUrl, &a1, sipType_Nepomuk_ResourceManager, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Thing(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1|J9", sipType_QString,&a0, &a0State, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Thing(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J9J8", sipType_QString,&a0, &a0State, sipType_QUrl, &a1, sipType_Nepomuk_ResourceManager, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Thing(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Thing * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Resource * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Nepomuk_Thing[] = {
    {SIP_MLNAME_CAST(sipName_addGroundingOccurrence), meth_Nepomuk_Thing_addGroundingOccurrence, METH_VARARGS, NULL},
    {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 sipTypeDef_nepomuk_Nepomuk_Thing = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Thing,
        {0}
    },
    {
        sipNameNr_Thing,
        {4, 255, 0},
        4, methods_Nepomuk_Thing,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Thing,
    0,
    init_Nepomuk_Thing,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Thing,
    0,
    0,
    0,
    release_Nepomuk_Thing,
    cast_Nepomuk_Thing,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/tag.sip"
#include <nepomuk/tag.h>
#line 3709 "sipnepomukpart3.cpp"

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 3713 "sipnepomukpart3.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 3716 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3719 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3722 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3725 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3728 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3731 "sipnepomukpart3.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/thing.sip"
#include <nepomuk/thing.h>
#line 3734 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 3737 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 3740 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 3743 "sipnepomukpart3.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3746 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3749 "sipnepomukpart3.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)
{
    PyObject *sipParseErr = NULL;

    {
        Nepomuk::Tag *sipCpp;

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

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

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

    return NULL;
}


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

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

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

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_Tag, sipName_resourceTypeUri, NULL);

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

    if (sipState & 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 *, SIP_SSIZE_T, const void *);}
static void assign_Nepomuk_Tag(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Nepomuk::Tag *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Nepomuk::Tag *>(sipSrc);
}


extern "C" {static void *array_Nepomuk_Tag(SIP_SSIZE_T);}
static void *array_Nepomuk_Tag(SIP_SSIZE_T sipNrElem)
{
    return new Nepomuk::Tag[sipNrElem];
}


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


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 *, PyObject **, PyObject **, PyObject **);}
static void *init_Nepomuk_Tag(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipNepomuk_Tag *sipCpp = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Nepomuk::ResourceManager * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_Nepomuk_ResourceManager, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Tag * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Nepomuk::Resource * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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);

            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_Tag(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J8", sipType_QUrl, &a0, sipType_Nepomuk_ResourceManager, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipNepomuk_Tag(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;
        const QUrl * a1;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QUrl * a0;
        const QUrl * a1;
        Nepomuk::ResourceManager * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Nepomuk_Tag[] = {{27, 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 sipTypeDef_nepomuk_Nepomuk_Tag = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Nepomuk__Tag,
        {0}
    },
    {
        sipNameNr_Tag,
        {4, 255, 0},
        3, methods_Nepomuk_Tag,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Nepomuk_Tag,
    0,
    init_Nepomuk_Tag,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Nepomuk_Tag,
    assign_Nepomuk_Tag,
    array_Nepomuk_Tag,
    copy_Nepomuk_Tag,
    release_Nepomuk_Tag,
    cast_Nepomuk_Tag,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resourcemanager.sip"
#include <nepomuk/resourcemanager.h>
#line 4239 "sipnepomukpart3.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 4243 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4246 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 4249 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4252 "sipnepomukpart3.cpp"
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/resource.sip"
#include <nepomuk/resource.h>
#line 4255 "sipnepomukpart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/nepomuk/variant.sip"
#include <nepomuk/variant.h>
#line 4258 "sipnepomukpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4261 "sipnepomukpart3.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4264 "sipnepomukpart3.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4267 "sipnepomukpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4270 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4273 "sipnepomukpart3.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4276 "sipnepomukpart3.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4279 "sipnepomukpart3.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4282 "sipnepomukpart3.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4285 "sipnepomukpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4288 "sipnepomukpart3.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4291 "sipnepomukpart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4294 "sipnepomukpart3.cpp"


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

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->init();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->initialized();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeResource(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Nepomuk::Resource>(sipCpp->allResourcesOfType(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

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

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

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->mainModel();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Model * a0;
        Nepomuk::ResourceManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Nepomuk_ResourceManager, &sipCpp, sipType_Soprano_Model, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOverrideMainModel(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Model * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_Soprano_Model, &a0))
        {
            Nepomuk::ResourceManager *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Nepomuk::ResourceManager::createManagerForModel(a0);
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Nepomuk::ResourceManager *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Nepomuk_ResourceManager)
        return ptr;

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

    return NULL;
}


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


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


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


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


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