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

#include "sipAPIsoprano.h"




extern "C" {static int slot_Soprano_Query_QueryLanguages___bool__(PyObject *);}
static int slot_Soprano_Query_QueryLanguages___bool__(PyObject *sipSelf)
{
    Soprano::Query::QueryLanguages *sipCpp = reinterpret_cast<Soprano::Query::QueryLanguages *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Query_QueryLanguages));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Query_QueryLanguages___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Query::QueryLanguages *sipCpp = reinterpret_cast<Soprano::Query::QueryLanguages *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Query_QueryLanguages));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Query::QueryLanguages * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 58 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(const_cast<Soprano::Query::QueryLanguages *>(a0),sipType_Soprano_Query_QueryLanguages,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,ne_slot,sipType_Soprano_Query_QueryLanguages,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Query_QueryLanguages___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Query::QueryLanguages *sipCpp = reinterpret_cast<Soprano::Query::QueryLanguages *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Query_QueryLanguages));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Query::QueryLanguages * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 94 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(const_cast<Soprano::Query::QueryLanguages *>(a0),sipType_Soprano_Query_QueryLanguages,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,eq_slot,sipType_Soprano_Query_QueryLanguages,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___invert__(PyObject *);}
static PyObject *slot_Soprano_Query_QueryLanguages___invert__(PyObject *sipSelf)
{
    Soprano::Query::QueryLanguages *sipCpp = reinterpret_cast<Soprano::Query::QueryLanguages *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Query_QueryLanguages));

    if (!sipCpp)
        return 0;


    {
        {
            Soprano::Query::QueryLanguages *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Query::QueryLanguages(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Soprano::Query::QueryLanguages * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_Query_QueryLanguages, &a0, &a0State, &a1))
        {
            Soprano::Query::QueryLanguages *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Query::QueryLanguages((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Query_QueryLanguages,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Soprano::Query::QueryLanguages * a0;
        int a0State = 0;
        Soprano::Query::QueryLanguages * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_Query_QueryLanguages, &a0, &a0State, sipType_Soprano_Query_QueryLanguages, &a1, &a1State))
        {
            Soprano::Query::QueryLanguages *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Query::QueryLanguages((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Query_QueryLanguages,a0State);
            sipReleaseType(a1,sipType_Soprano_Query_QueryLanguages,a1State);

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

    {
        Soprano::Query::QueryLanguages * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_Query_QueryLanguages, &a0, &a0State, &a1))
        {
            Soprano::Query::QueryLanguages *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::Query::QueryLanguages(*a0 ^ a1);
#line 203 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(a0,sipType_Soprano_Query_QueryLanguages,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Soprano::Query::QueryLanguages * a0;
        int a0State = 0;
        Soprano::Query::QueryLanguages * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_Query_QueryLanguages, &a0, &a0State, sipType_Soprano_Query_QueryLanguages, &a1, &a1State))
        {
            Soprano::Query::QueryLanguages *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Query::QueryLanguages((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Query_QueryLanguages,a0State);
            sipReleaseType(a1,sipType_Soprano_Query_QueryLanguages,a1State);

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

    {
        Soprano::Query::QueryLanguages * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_Query_QueryLanguages, &a0, &a0State, &a1))
        {
            Soprano::Query::QueryLanguages *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::Query::QueryLanguages(*a0 | a1);
#line 255 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(a0,sipType_Soprano_Query_QueryLanguages,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___int__(PyObject *);}
static PyObject *slot_Soprano_Query_QueryLanguages___int__(PyObject *sipSelf)
{
    Soprano::Query::QueryLanguages *sipCpp = reinterpret_cast<Soprano::Query::QueryLanguages *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Query_QueryLanguages));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    Soprano::Query::QueryLanguages *sipCpp = reinterpret_cast<Soprano::Query::QueryLanguages *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Query_QueryLanguages));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::Query::QueryLanguages * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_Query_QueryLanguages, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Query::QueryLanguages::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Query_QueryLanguages,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_Soprano_Query_QueryLanguages___ior__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Query_QueryLanguages___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_Query_QueryLanguages)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::Query::QueryLanguages *sipCpp = reinterpret_cast<Soprano::Query::QueryLanguages *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Query_QueryLanguages));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::Query::QueryLanguages * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_Query_QueryLanguages, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Query::QueryLanguages::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Query_QueryLanguages,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_Soprano_Query_QueryLanguages___iand__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Query_QueryLanguages___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_Query_QueryLanguages)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::Query::QueryLanguages *sipCpp = reinterpret_cast<Soprano::Query::QueryLanguages *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Query_QueryLanguages));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Query::QueryLanguages::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_Soprano_Query_QueryLanguages(void *, const sipTypeDef *);}
static void *cast_Soprano_Query_QueryLanguages(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Soprano_Query_QueryLanguages)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Query::QueryLanguages *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_Query_QueryLanguages(SIP_SSIZE_T);}
static void *array_Soprano_Query_QueryLanguages(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::Query::QueryLanguages[sipNrElem];
}


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


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


extern "C" {static void *init_Soprano_Query_QueryLanguages(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Query_QueryLanguages(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Soprano::Query::QueryLanguages *sipCpp = 0;

    {
        const Soprano::Query::QueryLanguages * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


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

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

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_Query_QueryLanguage)) ||
            sipCanConvertToType(sipPy, sipType_Soprano_Query_QueryLanguages, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_Query_QueryLanguage)))
{
    *sipCppPtr = new Soprano::Query::QueryLanguages(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Soprano::Query::QueryLanguages *>(sipConvertToType(sipPy, sipType_Soprano_Query_QueryLanguages, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 550 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_Query_QueryLanguages[] = {
    {(void *)slot_Soprano_Query_QueryLanguages___bool__, bool_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___ne__, ne_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___eq__, eq_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___invert__, invert_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___and__, and_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___xor__, xor_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___or__, or_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___int__, int_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___ixor__, ixor_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___ior__, ior_slot},
    {(void *)slot_Soprano_Query_QueryLanguages___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Query_QueryLanguages = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Query__QueryLanguages,
        {0}
    },
    {
        sipNameNr_QueryLanguages,
        {59, 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_Soprano_Query_QueryLanguages,
    init_Soprano_Query_QueryLanguages,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Query_QueryLanguages,
    assign_Soprano_Query_QueryLanguages,
    array_Soprano_Query_QueryLanguages,
    copy_Soprano_Query_QueryLanguages,
    release_Soprano_Query_QueryLanguages,
    cast_Soprano_Query_QueryLanguages,
    convertTo_Soprano_Query_QueryLanguages,
    0,
    0
},
    0,
    1,
    0
};


#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 624 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Soprano::Query::QueryLanguage sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::Query::queryLanguageFromString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromEnum(sipRes,sipType_Soprano_Query_QueryLanguage);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Query::QueryLanguage a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E|J1", sipType_Soprano_Query_QueryLanguage, &a0, sipType_QString,&a1, &a1State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Soprano::Query::queryLanguageToString(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


static PyMethodDef methods_Soprano_Query[] = {
    {SIP_MLNAME_CAST(sipName_queryLanguageFromString), meth_Soprano_Query_queryLanguageFromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryLanguageToString), meth_Soprano_Query_queryLanguageToString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Soprano_Query[] = {
    {sipName_QUERY_LANGUAGE_NONE, Soprano::Query::QUERY_LANGUAGE_NONE, 60},
    {sipName_QUERY_LANGUAGE_RDQL, Soprano::Query::QUERY_LANGUAGE_RDQL, 60},
    {sipName_QUERY_LANGUAGE_SERQL, Soprano::Query::QUERY_LANGUAGE_SERQL, 60},
    {sipName_QUERY_LANGUAGE_SPARQL, Soprano::Query::QUERY_LANGUAGE_SPARQL, 60},
    {sipName_QUERY_LANGUAGE_USER, Soprano::Query::QUERY_LANGUAGE_USER, 60},
    {sipName_QueryLanguageNone, Soprano::Query::QueryLanguageNone, 60},
    {sipName_QueryLanguageRdql, Soprano::Query::QueryLanguageRdql, 60},
    {sipName_QueryLanguageSerql, Soprano::Query::QueryLanguageSerql, 60},
    {sipName_QueryLanguageSparql, Soprano::Query::QueryLanguageSparql, 60},
    {sipName_QueryLanguageUser, Soprano::Query::QueryLanguageUser, 60},
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Query = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Query,
        {0}
    },
    {
        sipNameNr_Query,
        {11, 255, 0},
        2, methods_Soprano_Query,
        10, enummembers_Soprano_Query,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};




extern "C" {static int slot_Soprano_BackendFeatures___bool__(PyObject *);}
static int slot_Soprano_BackendFeatures___bool__(PyObject *sipSelf)
{
    Soprano::BackendFeatures *sipCpp = reinterpret_cast<Soprano::BackendFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendFeatures));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 774 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Soprano_BackendFeatures___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_BackendFeatures___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::BackendFeatures *sipCpp = reinterpret_cast<Soprano::BackendFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::BackendFeatures * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 804 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(const_cast<Soprano::BackendFeatures *>(a0),sipType_Soprano_BackendFeatures,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,ne_slot,sipType_Soprano_BackendFeatures,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_BackendFeatures___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_BackendFeatures___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::BackendFeatures *sipCpp = reinterpret_cast<Soprano::BackendFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::BackendFeatures * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 840 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(const_cast<Soprano::BackendFeatures *>(a0),sipType_Soprano_BackendFeatures,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,eq_slot,sipType_Soprano_BackendFeatures,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_BackendFeatures___invert__(PyObject *);}
static PyObject *slot_Soprano_BackendFeatures___invert__(PyObject *sipSelf)
{
    Soprano::BackendFeatures *sipCpp = reinterpret_cast<Soprano::BackendFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendFeatures));

    if (!sipCpp)
        return 0;


    {
        {
            Soprano::BackendFeatures *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BackendFeatures(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Soprano::BackendFeatures * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_BackendFeatures, &a0, &a0State, &a1))
        {
            Soprano::BackendFeatures *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BackendFeatures((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Soprano::BackendFeatures * a0;
        int a0State = 0;
        Soprano::BackendFeatures * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_BackendFeatures, &a0, &a0State, sipType_Soprano_BackendFeatures, &a1, &a1State))
        {
            Soprano::BackendFeatures *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BackendFeatures((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,a0State);
            sipReleaseType(a1,sipType_Soprano_BackendFeatures,a1State);

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

    {
        Soprano::BackendFeatures * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_BackendFeatures, &a0, &a0State, &a1))
        {
            Soprano::BackendFeatures *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::BackendFeatures(*a0 ^ a1);
#line 949 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Soprano::BackendFeatures * a0;
        int a0State = 0;
        Soprano::BackendFeatures * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_BackendFeatures, &a0, &a0State, sipType_Soprano_BackendFeatures, &a1, &a1State))
        {
            Soprano::BackendFeatures *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BackendFeatures((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,a0State);
            sipReleaseType(a1,sipType_Soprano_BackendFeatures,a1State);

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

    {
        Soprano::BackendFeatures * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_BackendFeatures, &a0, &a0State, &a1))
        {
            Soprano::BackendFeatures *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::BackendFeatures(*a0 | a1);
#line 1001 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_BackendFeatures___int__(PyObject *);}
static PyObject *slot_Soprano_BackendFeatures___int__(PyObject *sipSelf)
{
    Soprano::BackendFeatures *sipCpp = reinterpret_cast<Soprano::BackendFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendFeatures));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    Soprano::BackendFeatures *sipCpp = reinterpret_cast<Soprano::BackendFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::BackendFeatures * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_BackendFeatures, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::BackendFeatures::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,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_Soprano_BackendFeatures___ior__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_BackendFeatures___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_BackendFeatures)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::BackendFeatures *sipCpp = reinterpret_cast<Soprano::BackendFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::BackendFeatures * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_BackendFeatures, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::BackendFeatures::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,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_Soprano_BackendFeatures___iand__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_BackendFeatures___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_BackendFeatures)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::BackendFeatures *sipCpp = reinterpret_cast<Soprano::BackendFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::BackendFeatures::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_Soprano_BackendFeatures(void *, const sipTypeDef *);}
static void *cast_Soprano_BackendFeatures(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Soprano_BackendFeatures)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<Soprano::BackendFeatures *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_BackendFeatures(SIP_SSIZE_T);}
static void *array_Soprano_BackendFeatures(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::BackendFeatures[sipNrElem];
}


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


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


extern "C" {static void *init_Soprano_BackendFeatures(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_BackendFeatures(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Soprano::BackendFeatures *sipCpp = 0;

    {
        const Soprano::BackendFeatures * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Soprano_BackendFeatures(PyObject *, void **, int *, PyObject *);}
static int convertTo_Soprano_BackendFeatures(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Soprano::BackendFeatures **sipCppPtr = reinterpret_cast<Soprano::BackendFeatures **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Soprano::BackendFeatures is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_BackendFeature)) ||
            sipCanConvertToType(sipPy, sipType_Soprano_BackendFeatures, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_BackendFeature)))
{
    *sipCppPtr = new Soprano::BackendFeatures(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Soprano::BackendFeatures *>(sipConvertToType(sipPy, sipType_Soprano_BackendFeatures, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 1296 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_BackendFeatures[] = {
    {(void *)slot_Soprano_BackendFeatures___bool__, bool_slot},
    {(void *)slot_Soprano_BackendFeatures___ne__, ne_slot},
    {(void *)slot_Soprano_BackendFeatures___eq__, eq_slot},
    {(void *)slot_Soprano_BackendFeatures___invert__, invert_slot},
    {(void *)slot_Soprano_BackendFeatures___and__, and_slot},
    {(void *)slot_Soprano_BackendFeatures___xor__, xor_slot},
    {(void *)slot_Soprano_BackendFeatures___or__, or_slot},
    {(void *)slot_Soprano_BackendFeatures___int__, int_slot},
    {(void *)slot_Soprano_BackendFeatures___ixor__, ixor_slot},
    {(void *)slot_Soprano_BackendFeatures___ior__, ior_slot},
    {(void *)slot_Soprano_BackendFeatures___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_BackendFeatures = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__BackendFeatures,
        {0}
    },
    {
        sipNameNr_BackendFeatures,
        {11, 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_Soprano_BackendFeatures,
    init_Soprano_BackendFeatures,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_BackendFeatures,
    assign_Soprano_BackendFeatures,
    array_Soprano_BackendFeatures,
    copy_Soprano_BackendFeatures,
    release_Soprano_BackendFeatures,
    cast_Soprano_BackendFeatures,
    convertTo_Soprano_BackendFeatures,
    0,
    0
},
    0,
    1,
    0
};




extern "C" {static int slot_Soprano_BackendOptions___bool__(PyObject *);}
static int slot_Soprano_BackendOptions___bool__(PyObject *sipSelf)
{
    Soprano::BackendOptions *sipCpp = reinterpret_cast<Soprano::BackendOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 1385 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Soprano_BackendOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_BackendOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::BackendOptions *sipCpp = reinterpret_cast<Soprano::BackendOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::BackendOptions * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1415 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(const_cast<Soprano::BackendOptions *>(a0),sipType_Soprano_BackendOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,ne_slot,sipType_Soprano_BackendOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_BackendOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_BackendOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::BackendOptions *sipCpp = reinterpret_cast<Soprano::BackendOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::BackendOptions * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 1451 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(const_cast<Soprano::BackendOptions *>(a0),sipType_Soprano_BackendOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,eq_slot,sipType_Soprano_BackendOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_BackendOptions___invert__(PyObject *);}
static PyObject *slot_Soprano_BackendOptions___invert__(PyObject *sipSelf)
{
    Soprano::BackendOptions *sipCpp = reinterpret_cast<Soprano::BackendOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendOptions));

    if (!sipCpp)
        return 0;


    {
        {
            Soprano::BackendOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BackendOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Soprano::BackendOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_BackendOptions, &a0, &a0State, &a1))
        {
            Soprano::BackendOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BackendOptions((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Soprano::BackendOptions * a0;
        int a0State = 0;
        Soprano::BackendOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_BackendOptions, &a0, &a0State, sipType_Soprano_BackendOptions, &a1, &a1State))
        {
            Soprano::BackendOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BackendOptions((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendOptions,a0State);
            sipReleaseType(a1,sipType_Soprano_BackendOptions,a1State);

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

    {
        Soprano::BackendOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_BackendOptions, &a0, &a0State, &a1))
        {
            Soprano::BackendOptions *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::BackendOptions(*a0 ^ a1);
#line 1560 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(a0,sipType_Soprano_BackendOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Soprano::BackendOptions * a0;
        int a0State = 0;
        Soprano::BackendOptions * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_BackendOptions, &a0, &a0State, sipType_Soprano_BackendOptions, &a1, &a1State))
        {
            Soprano::BackendOptions *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BackendOptions((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendOptions,a0State);
            sipReleaseType(a1,sipType_Soprano_BackendOptions,a1State);

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

    {
        Soprano::BackendOptions * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_BackendOptions, &a0, &a0State, &a1))
        {
            Soprano::BackendOptions *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::BackendOptions(*a0 | a1);
#line 1612 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(a0,sipType_Soprano_BackendOptions,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_BackendOptions___int__(PyObject *);}
static PyObject *slot_Soprano_BackendOptions___int__(PyObject *sipSelf)
{
    Soprano::BackendOptions *sipCpp = reinterpret_cast<Soprano::BackendOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    Soprano::BackendOptions *sipCpp = reinterpret_cast<Soprano::BackendOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::BackendOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_BackendOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::BackendOptions::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendOptions,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_Soprano_BackendOptions___ior__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_BackendOptions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_BackendOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::BackendOptions *sipCpp = reinterpret_cast<Soprano::BackendOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::BackendOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_BackendOptions, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::BackendOptions::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendOptions,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_Soprano_BackendOptions___iand__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_BackendOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_BackendOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::BackendOptions *sipCpp = reinterpret_cast<Soprano::BackendOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BackendOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::BackendOptions::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_Soprano_BackendOptions(void *, const sipTypeDef *);}
static void *cast_Soprano_BackendOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Soprano_BackendOptions)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<Soprano::BackendOptions *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_BackendOptions(SIP_SSIZE_T);}
static void *array_Soprano_BackendOptions(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::BackendOptions[sipNrElem];
}


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


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


extern "C" {static void *init_Soprano_BackendOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_BackendOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Soprano::BackendOptions *sipCpp = 0;

    {
        const Soprano::BackendOptions * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Soprano_BackendOptions(PyObject *, void **, int *, PyObject *);}
static int convertTo_Soprano_BackendOptions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Soprano::BackendOptions **sipCppPtr = reinterpret_cast<Soprano::BackendOptions **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Soprano::BackendOptions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_BackendOption)) ||
            sipCanConvertToType(sipPy, sipType_Soprano_BackendOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_BackendOption)))
{
    *sipCppPtr = new Soprano::BackendOptions(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Soprano::BackendOptions *>(sipConvertToType(sipPy, sipType_Soprano_BackendOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 1907 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_BackendOptions[] = {
    {(void *)slot_Soprano_BackendOptions___bool__, bool_slot},
    {(void *)slot_Soprano_BackendOptions___ne__, ne_slot},
    {(void *)slot_Soprano_BackendOptions___eq__, eq_slot},
    {(void *)slot_Soprano_BackendOptions___invert__, invert_slot},
    {(void *)slot_Soprano_BackendOptions___and__, and_slot},
    {(void *)slot_Soprano_BackendOptions___xor__, xor_slot},
    {(void *)slot_Soprano_BackendOptions___or__, or_slot},
    {(void *)slot_Soprano_BackendOptions___int__, int_slot},
    {(void *)slot_Soprano_BackendOptions___ixor__, ixor_slot},
    {(void *)slot_Soprano_BackendOptions___ior__, ior_slot},
    {(void *)slot_Soprano_BackendOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_BackendOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__BackendOptions,
        {0}
    },
    {
        sipNameNr_BackendOptions,
        {11, 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_Soprano_BackendOptions,
    init_Soprano_BackendOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_BackendOptions,
    assign_Soprano_BackendOptions,
    array_Soprano_BackendOptions,
    copy_Soprano_BackendOptions,
    release_Soprano_BackendOptions,
    cast_Soprano_BackendOptions,
    convertTo_Soprano_BackendOptions,
    0,
    0
},
    0,
    1,
    0
};




extern "C" {static int slot_Soprano_RdfSerializations___bool__(PyObject *);}
static int slot_Soprano_RdfSerializations___bool__(PyObject *sipSelf)
{
    Soprano::RdfSerializations *sipCpp = reinterpret_cast<Soprano::RdfSerializations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_RdfSerializations));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 1996 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Soprano_RdfSerializations___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_RdfSerializations___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::RdfSerializations *sipCpp = reinterpret_cast<Soprano::RdfSerializations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_RdfSerializations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::RdfSerializations * a0;
        int a0State = 0;

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

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 2026 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(const_cast<Soprano::RdfSerializations *>(a0),sipType_Soprano_RdfSerializations,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,ne_slot,sipType_Soprano_RdfSerializations,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_RdfSerializations___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_RdfSerializations___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::RdfSerializations *sipCpp = reinterpret_cast<Soprano::RdfSerializations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_RdfSerializations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::RdfSerializations * a0;
        int a0State = 0;

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

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 2062 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(const_cast<Soprano::RdfSerializations *>(a0),sipType_Soprano_RdfSerializations,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,eq_slot,sipType_Soprano_RdfSerializations,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_RdfSerializations___invert__(PyObject *);}
static PyObject *slot_Soprano_RdfSerializations___invert__(PyObject *sipSelf)
{
    Soprano::RdfSerializations *sipCpp = reinterpret_cast<Soprano::RdfSerializations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_RdfSerializations));

    if (!sipCpp)
        return 0;


    {
        {
            Soprano::RdfSerializations *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::RdfSerializations(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


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

    {
        Soprano::RdfSerializations * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_RdfSerializations, &a0, &a0State, &a1))
        {
            Soprano::RdfSerializations *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::RdfSerializations((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_RdfSerializations,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Soprano::RdfSerializations * a0;
        int a0State = 0;
        Soprano::RdfSerializations * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_RdfSerializations, &a0, &a0State, sipType_Soprano_RdfSerializations, &a1, &a1State))
        {
            Soprano::RdfSerializations *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::RdfSerializations((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_RdfSerializations,a0State);
            sipReleaseType(a1,sipType_Soprano_RdfSerializations,a1State);

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

    {
        Soprano::RdfSerializations * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_RdfSerializations, &a0, &a0State, &a1))
        {
            Soprano::RdfSerializations *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::RdfSerializations(*a0 ^ a1);
#line 2171 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(a0,sipType_Soprano_RdfSerializations,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Soprano::RdfSerializations * a0;
        int a0State = 0;
        Soprano::RdfSerializations * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_RdfSerializations, &a0, &a0State, sipType_Soprano_RdfSerializations, &a1, &a1State))
        {
            Soprano::RdfSerializations *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::RdfSerializations((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_RdfSerializations,a0State);
            sipReleaseType(a1,sipType_Soprano_RdfSerializations,a1State);

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

    {
        Soprano::RdfSerializations * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_RdfSerializations, &a0, &a0State, &a1))
        {
            Soprano::RdfSerializations *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::RdfSerializations(*a0 | a1);
#line 2223 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
            sipReleaseType(a0,sipType_Soprano_RdfSerializations,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_RdfSerializations___int__(PyObject *);}
static PyObject *slot_Soprano_RdfSerializations___int__(PyObject *sipSelf)
{
    Soprano::RdfSerializations *sipCpp = reinterpret_cast<Soprano::RdfSerializations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_RdfSerializations));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


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

    Soprano::RdfSerializations *sipCpp = reinterpret_cast<Soprano::RdfSerializations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_RdfSerializations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::RdfSerializations * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_RdfSerializations, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::RdfSerializations::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_RdfSerializations,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_Soprano_RdfSerializations___ior__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_RdfSerializations___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_RdfSerializations)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::RdfSerializations *sipCpp = reinterpret_cast<Soprano::RdfSerializations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_RdfSerializations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::RdfSerializations * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_RdfSerializations, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::RdfSerializations::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_RdfSerializations,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_Soprano_RdfSerializations___iand__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_RdfSerializations___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_RdfSerializations)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::RdfSerializations *sipCpp = reinterpret_cast<Soprano::RdfSerializations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_RdfSerializations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::RdfSerializations::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_Soprano_RdfSerializations(void *, const sipTypeDef *);}
static void *cast_Soprano_RdfSerializations(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Soprano_RdfSerializations)
        return ptr;

    return NULL;
}


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

    delete reinterpret_cast<Soprano::RdfSerializations *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_RdfSerializations(SIP_SSIZE_T);}
static void *array_Soprano_RdfSerializations(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::RdfSerializations[sipNrElem];
}


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


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


extern "C" {static void *init_Soprano_RdfSerializations(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_RdfSerializations(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Soprano::RdfSerializations *sipCpp = 0;

    {
        const Soprano::RdfSerializations * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

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

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Soprano_RdfSerializations(PyObject *, void **, int *, PyObject *);}
static int convertTo_Soprano_RdfSerializations(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Soprano::RdfSerializations **sipCppPtr = reinterpret_cast<Soprano::RdfSerializations **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Soprano::RdfSerializations is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_RdfSerialization)) ||
            sipCanConvertToType(sipPy, sipType_Soprano_RdfSerializations, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_RdfSerialization)))
{
    *sipCppPtr = new Soprano::RdfSerializations(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Soprano::RdfSerializations *>(sipConvertToType(sipPy, sipType_Soprano_RdfSerializations, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 2518 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_RdfSerializations[] = {
    {(void *)slot_Soprano_RdfSerializations___bool__, bool_slot},
    {(void *)slot_Soprano_RdfSerializations___ne__, ne_slot},
    {(void *)slot_Soprano_RdfSerializations___eq__, eq_slot},
    {(void *)slot_Soprano_RdfSerializations___invert__, invert_slot},
    {(void *)slot_Soprano_RdfSerializations___and__, and_slot},
    {(void *)slot_Soprano_RdfSerializations___xor__, xor_slot},
    {(void *)slot_Soprano_RdfSerializations___or__, or_slot},
    {(void *)slot_Soprano_RdfSerializations___int__, int_slot},
    {(void *)slot_Soprano_RdfSerializations___ixor__, ixor_slot},
    {(void *)slot_Soprano_RdfSerializations___ior__, ior_slot},
    {(void *)slot_Soprano_RdfSerializations___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_RdfSerializations = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__RdfSerializations,
        {0}
    },
    {
        sipNameNr_RdfSerializations,
        {11, 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_Soprano_RdfSerializations,
    init_Soprano_RdfSerializations,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_RdfSerializations,
    assign_Soprano_RdfSerializations,
    array_Soprano_RdfSerializations,
    copy_Soprano_RdfSerializations,
    release_Soprano_RdfSerializations,
    cast_Soprano_RdfSerializations,
    convertTo_Soprano_RdfSerializations,
    0,
    0
},
    0,
    1,
    0
};


#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2592 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2595 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2598 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2601 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2604 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2607 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 2610 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 2613 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/literalvalue.sip"
#include <soprano/literalvalue.h>
#line 2616 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2619 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2622 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart7.cpp"


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

    {
        const Soprano::LanguageTag * a0;

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

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

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        const Soprano::LiteralValue * a0;

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

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

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;

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

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

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        const Soprano::Statement * a0;

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

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

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::BackendSettings& a0def = Soprano::BackendSettings();
        const Soprano::BackendSettings * a0 = &a0def;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1", sipType_QList_0100Soprano_BackendSetting,&a0, &a0State))
        {
            Soprano::Model *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::createModel(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0100Soprano_BackendSetting,a0State);

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            const Soprano::Backend *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::usedBackend();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast<Soprano::Backend *>(sipRes),sipType_Soprano_Backend,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Backend * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_Soprano_Backend, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            Soprano::setUsedBackend(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::BackendFeatures * a0;
        int a0State = 0;
        const QStringList& a1def = QStringList();
        const QStringList * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1", sipType_Soprano_BackendFeatures, &a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            const Soprano::Backend *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::discoverBackendByFeatures(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            return sipConvertFromType(const_cast<Soprano::Backend *>(sipRes),sipType_Soprano_Backend,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            const Soprano::Backend *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::discoverBackendByName(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(const_cast<Soprano::Backend *>(sipRes),sipType_Soprano_Backend,NULL);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::BackendSettings * a0;
        int a0State = 0;
        Soprano::BackendOption a1;
        const QVariant * a2;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1EJ1", sipType_QList_0100Soprano_BackendSetting,&a0, &a0State, sipType_Soprano_BackendOption, &a1, sipType_QVariant,&a2, &a2State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(Soprano::valueInSettingsWithDefault(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0100Soprano_BackendSetting,a0State);
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);

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

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

    return NULL;
}


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

    {
        const Soprano::BackendSettings * a0;
        int a0State = 0;
        Soprano::BackendOption a1;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1E|J1", sipType_QList_0100Soprano_BackendSetting,&a0, &a0State, sipType_Soprano_BackendOption, &a1, sipType_QString,&a2, &a2State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(Soprano::valueInSettings(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0100Soprano_BackendSetting,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

    {
        const Soprano::BackendSettings * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QVariant& a2def = QVariant();
        const QVariant * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1", sipType_QList_0100Soprano_BackendSetting,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QVariant,&a2, &a2State))
        {
            QVariant *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(Soprano::valueInSettings(*a0,*a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0100Soprano_BackendSetting,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);

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

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

    return NULL;
}


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

    {
        Soprano::BackendSettings * a0;
        int a0State = 0;
        Soprano::BackendOption a1;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1E|J1", sipType_QList_0100Soprano_BackendSetting,&a0, &a0State, sipType_Soprano_BackendOption, &a1, sipType_QString,&a2, &a2State))
        {
            Soprano::BackendSetting *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &Soprano::settingInSettings(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QList_0100Soprano_BackendSetting,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

    {
        Soprano::BackendSettings * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QList_0100Soprano_BackendSetting,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Soprano::BackendSetting *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &Soprano::settingInSettings(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QList_0100Soprano_BackendSetting,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const Soprano::BackendSettings * a0;
        int a0State = 0;
        Soprano::BackendOption a1;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1E|J1", sipType_QList_0100Soprano_BackendSetting,&a0, &a0State, sipType_Soprano_BackendOption, &a1, sipType_QString,&a2, &a2State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::isOptionInSettings(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0100Soprano_BackendSetting,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            Soprano::RdfSerialization sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::mimeTypeToSerialization(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromEnum(sipRes,sipType_Soprano_RdfSerialization);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::RdfSerialization a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E|J1", sipType_Soprano_RdfSerialization, &a0, sipType_QString,&a1, &a1State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Soprano::serializationMimeType(a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


static PyMethodDef methods_Soprano[] = {
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverBackendByFeatures), meth_Soprano_discoverBackendByFeatures, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverBackendByName), meth_Soprano_discoverBackendByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isOptionInSettings), meth_Soprano_isOptionInSettings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeTypeToSerialization), meth_Soprano_mimeTypeToSerialization, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_qHash), meth_Soprano_qHash, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serializationMimeType), meth_Soprano_serializationMimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUsedBackend), meth_Soprano_setUsedBackend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_settingInSettings), meth_Soprano_settingInSettings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_usedBackend), meth_Soprano_usedBackend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_valueInSettings), meth_Soprano_valueInSettings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_valueInSettingsWithDefault), meth_Soprano_valueInSettingsWithDefault, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Soprano[] = {
    {sipName_BackendFeatureAddStatement, Soprano::BackendFeatureAddStatement, 13},
    {sipName_BackendFeatureAll, Soprano::BackendFeatureAll, 13},
    {sipName_BackendFeatureContext, Soprano::BackendFeatureContext, 13},
    {sipName_BackendFeatureInference, Soprano::BackendFeatureInference, 13},
    {sipName_BackendFeatureInferenceOptional, Soprano::BackendFeatureInferenceOptional, 13},
    {sipName_BackendFeatureListStatements, Soprano::BackendFeatureListStatements, 13},
    {sipName_BackendFeatureNone, Soprano::BackendFeatureNone, 13},
    {sipName_BackendFeatureQuery, Soprano::BackendFeatureQuery, 13},
    {sipName_BackendFeatureRemoveStatements, Soprano::BackendFeatureRemoveStatements, 13},
    {sipName_BackendFeatureStorageMemory, Soprano::BackendFeatureStorageMemory, 13},
    {sipName_BackendFeatureUser, Soprano::BackendFeatureUser, 13},
    {sipName_BackendOptionEnableInference, Soprano::BackendOptionEnableInference, 15},
    {sipName_BackendOptionHost, Soprano::BackendOptionHost, 15},
    {sipName_BackendOptionNone, Soprano::BackendOptionNone, 15},
    {sipName_BackendOptionPassword, Soprano::BackendOptionPassword, 15},
    {sipName_BackendOptionPort, Soprano::BackendOptionPort, 15},
    {sipName_BackendOptionStorageDir, Soprano::BackendOptionStorageDir, 15},
    {sipName_BackendOptionStorageMemory, Soprano::BackendOptionStorageMemory, 15},
    {sipName_BackendOptionUser, Soprano::BackendOptionUser, 15},
    {sipName_BackendOptionUsername, Soprano::BackendOptionUsername, 15},
    {sipName_SerializationN3, Soprano::SerializationN3, 64},
    {sipName_SerializationNQuads, Soprano::SerializationNQuads, 64},
    {sipName_SerializationNTriples, Soprano::SerializationNTriples, 64},
    {sipName_SerializationRdfXml, Soprano::SerializationRdfXml, 64},
    {sipName_SerializationTrig, Soprano::SerializationTrig, 64},
    {sipName_SerializationTurtle, Soprano::SerializationTurtle, 64},
    {sipName_SerializationUnknown, Soprano::SerializationUnknown, 64},
    {sipName_SerializationUser, Soprano::SerializationUser, 64},
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano,
        {0}
    },
    {
        sipNameNr_Soprano,
        {0, 0, 1},
        12, methods_Soprano,
        28, enummembers_Soprano,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
