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

#include "sipAPIsoprano.h"




extern "C" {static int slot_Soprano_Query_QueryLanguages___bool__(PyObject *sipSelf);}
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 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 28 "sipsopranopart2.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___ne__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 56 "sipsopranopart2.cpp"

            sipReleaseType(const_cast<Soprano::Query::QueryLanguages *>(a0),sipType_Soprano_Query_QueryLanguages,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___eq__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 88 "sipsopranopart2.cpp"

            sipReleaseType(const_cast<Soprano::Query::QueryLanguages *>(a0),sipType_Soprano_Query_QueryLanguages,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___invert__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_Query_QueryLanguages___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_Query_QueryLanguages___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_Query_QueryLanguages___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___int__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___ixor__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___ior__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_Query_QueryLanguages___iand__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Query::QueryLanguages::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    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 *, const void*);}
static void assign_Soprano_Query_QueryLanguages(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::Query::QueryLanguages *>(sipDst) = *reinterpret_cast<const Soprano::Query::QueryLanguages *>(sipSrc);
}


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


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

    if (!sipCpp)
    {
        const Soprano::Query::QueryLanguages * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Query::QueryLanguages(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Query::QueryLanguages();
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


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 276 "/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 459 "sipsopranopart2.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 pyqt4Type_soprano_Soprano_Query_QueryLanguages = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Query__QueryLanguages,
        {0}
    },
    sipNameNr_QueryLanguages,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {58, 255, 0},
    0,
    slots_Soprano_Query_QueryLanguages,
    0, 0,
    0, 0,
    0, 0,
    init_Soprano_Query_QueryLanguages,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Query_QueryLanguages,
    release_Soprano_Query_QueryLanguages,
    cast_Soprano_Query_QueryLanguages,
    convertTo_Soprano_Query_QueryLanguages,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Query_QueryLanguages,
    0,
    1,
    0
};


#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 528 "sipsopranopart2.cpp"


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

    {
        const QString * a0;
        int a0State = 0;

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

    return NULL;
}


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

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

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

    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, 59},
    {sipName_QUERY_LANGUAGE_RDQL, Soprano::Query::QUERY_LANGUAGE_RDQL, 59},
    {sipName_QUERY_LANGUAGE_SERQL, Soprano::Query::QUERY_LANGUAGE_SERQL, 59},
    {sipName_QUERY_LANGUAGE_SPARQL, Soprano::Query::QUERY_LANGUAGE_SPARQL, 59},
    {sipName_QUERY_LANGUAGE_USER, Soprano::Query::QUERY_LANGUAGE_USER, 59},
    {sipName_QueryLanguageNone, Soprano::Query::QueryLanguageNone, 59},
    {sipName_QueryLanguageRdql, Soprano::Query::QueryLanguageRdql, 59},
    {sipName_QueryLanguageSerql, Soprano::Query::QueryLanguageSerql, 59},
    {sipName_QueryLanguageSparql, Soprano::Query::QueryLanguageSparql, 59},
    {sipName_QueryLanguageUser, Soprano::Query::QueryLanguageUser, 59},
};


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




extern "C" {static int slot_Soprano_BackendFeatures___bool__(PyObject *sipSelf);}
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 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 675 "sipsopranopart2.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Soprano_BackendFeatures___ne__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 703 "sipsopranopart2.cpp"

            sipReleaseType(const_cast<Soprano::BackendFeatures *>(a0),sipType_Soprano_BackendFeatures,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendFeatures___eq__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 735 "sipsopranopart2.cpp"

            sipReleaseType(const_cast<Soprano::BackendFeatures *>(a0),sipType_Soprano_BackendFeatures,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendFeatures___invert__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_Soprano_BackendFeatures___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_BackendFeatures___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendFeatures___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_BackendFeatures___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendFeatures___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_BackendFeatures___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendFeatures___int__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_Soprano_BackendFeatures___ixor__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_BackendFeatures___ior__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_BackendFeatures___iand__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::BackendFeatures::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    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 *, const void*);}
static void assign_Soprano_BackendFeatures(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::BackendFeatures *>(sipDst) = *reinterpret_cast<const Soprano::BackendFeatures *>(sipSrc);
}


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


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

    if (!sipCpp)
    {
        const Soprano::BackendFeatures * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::BackendFeatures(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

    return sipCpp;
}


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 276 "/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 1106 "sipsopranopart2.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 pyqt4Type_soprano_Soprano_BackendFeatures = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__BackendFeatures,
        {0}
    },
    sipNameNr_BackendFeatures,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    slots_Soprano_BackendFeatures,
    0, 0,
    0, 0,
    0, 0,
    init_Soprano_BackendFeatures,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_BackendFeatures,
    release_Soprano_BackendFeatures,
    cast_Soprano_BackendFeatures,
    convertTo_Soprano_BackendFeatures,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_BackendFeatures,
    0,
    1,
    0
};




extern "C" {static int slot_Soprano_BackendOptions___bool__(PyObject *sipSelf);}
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 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 1190 "sipsopranopart2.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Soprano_BackendOptions___ne__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1218 "sipsopranopart2.cpp"

            sipReleaseType(const_cast<Soprano::BackendOptions *>(a0),sipType_Soprano_BackendOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendOptions___eq__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 1250 "sipsopranopart2.cpp"

            sipReleaseType(const_cast<Soprano::BackendOptions *>(a0),sipType_Soprano_BackendOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendOptions___invert__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_Soprano_BackendOptions___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_BackendOptions___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendOptions___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_BackendOptions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendOptions___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_BackendOptions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_BackendOptions___int__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_Soprano_BackendOptions___ixor__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_BackendOptions___ior__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_BackendOptions___iand__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::BackendOptions::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    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 *, const void*);}
static void assign_Soprano_BackendOptions(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::BackendOptions *>(sipDst) = *reinterpret_cast<const Soprano::BackendOptions *>(sipSrc);
}


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


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

    if (!sipCpp)
    {
        const Soprano::BackendOptions * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::BackendOptions(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

    return sipCpp;
}


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 276 "/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 1621 "sipsopranopart2.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 pyqt4Type_soprano_Soprano_BackendOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__BackendOptions,
        {0}
    },
    sipNameNr_BackendOptions,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    slots_Soprano_BackendOptions,
    0, 0,
    0, 0,
    0, 0,
    init_Soprano_BackendOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_BackendOptions,
    release_Soprano_BackendOptions,
    cast_Soprano_BackendOptions,
    convertTo_Soprano_BackendOptions,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_BackendOptions,
    0,
    1,
    0
};




extern "C" {static int slot_Soprano_RdfSerializations___bool__(PyObject *sipSelf);}
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 271 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 1705 "sipsopranopart2.cpp"

            return sipRes;
        }
    }
}


extern "C" {static PyObject *slot_Soprano_RdfSerializations___ne__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 266 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 1733 "sipsopranopart2.cpp"

            sipReleaseType(const_cast<Soprano::RdfSerializations *>(a0),sipType_Soprano_RdfSerializations,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_RdfSerializations___eq__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

#line 261 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 1765 "sipsopranopart2.cpp"

            sipReleaseType(const_cast<Soprano::RdfSerializations *>(a0),sipType_Soprano_RdfSerializations,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_RdfSerializations___invert__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_Soprano_RdfSerializations___and__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_RdfSerializations___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_RdfSerializations___xor__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_RdfSerializations___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_RdfSerializations___or__(PyObject *sipArg0,PyObject *sipArg1);}
static PyObject *slot_Soprano_RdfSerializations___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    int sipArgsParsed = 0;

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

        if (sipParsePair(&sipArgsParsed,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);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_RdfSerializations___int__(PyObject *sipSelf);}
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);
        }
    }
}


extern "C" {static PyObject *slot_Soprano_RdfSerializations___ixor__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_RdfSerializations___ior__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

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

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

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_RdfSerializations___iand__(PyObject *sipSelf,PyObject *sipArg);}
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;

    int sipArgsParsed = 0;

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::RdfSerializations::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    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 *, const void*);}
static void assign_Soprano_RdfSerializations(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::RdfSerializations *>(sipDst) = *reinterpret_cast<const Soprano::RdfSerializations *>(sipSrc);
}


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


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

    if (!sipCpp)
    {
        const Soprano::RdfSerializations * a0;
        int a0State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"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);
        }
    }

    if (!sipCpp)
    {
        int a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::RdfSerializations(a0);
            Py_END_ALLOW_THREADS
        }
    }

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

    return sipCpp;
}


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 276 "/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 2136 "sipsopranopart2.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 pyqt4Type_soprano_Soprano_RdfSerializations = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__RdfSerializations,
        {0}
    },
    sipNameNr_RdfSerializations,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    slots_Soprano_RdfSerializations,
    0, 0,
    0, 0,
    0, 0,
    init_Soprano_RdfSerializations,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_RdfSerializations,
    release_Soprano_RdfSerializations,
    cast_Soprano_RdfSerializations,
    convertTo_Soprano_RdfSerializations,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_RdfSerializations,
    0,
    1,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/servercore.sip"
#include <soprano/servercore.h>
#line 2204 "sipsopranopart2.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2208 "sipsopranopart2.cpp"
#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 2211 "sipsopranopart2.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2232 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2235 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2238 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2241 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 2244 "sipsopranopart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 2247 "sipsopranopart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 2250 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 2253 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 2256 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 2259 "sipsopranopart2.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2262 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2265 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2268 "sipsopranopart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2271 "sipsopranopart2.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2274 "sipsopranopart2.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2277 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2280 "sipsopranopart2.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 2311 "sipsopranopart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 2314 "sipsopranopart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 2317 "sipsopranopart2.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2320 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2323 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 2326 "sipsopranopart2.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2329 "sipsopranopart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2332 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2335 "sipsopranopart2.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2338 "sipsopranopart2.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2341 "sipsopranopart2.cpp"


class sipSoprano_Server_ServerCore : public Soprano::Server::ServerCore
{
public:
    sipSoprano_Server_ServerCore(QObject *);
    virtual ~sipSoprano_Server_ServerCore();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    Soprano::Model * sipProtectVirt_createModel(bool,const QList<Soprano::BackendSetting>&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::Model * model(const QString&);
    void removeModel(const QString&);
    QStringList allModels() const;
    Soprano::Model * createModel(const QList<Soprano::BackendSetting>&);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSoprano_Server_ServerCore(const sipSoprano_Server_ServerCore &);
    sipSoprano_Server_ServerCore &operator = (const sipSoprano_Server_ServerCore &);

    char sipPyMethods[12];
};

sipSoprano_Server_ServerCore::sipSoprano_Server_ServerCore(QObject *a0): Soprano::Server::ServerCore(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Server_ServerCore::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Server_ServerCore);
}

int sipSoprano_Server_ServerCore::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Soprano::Server::ServerCore::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_soprano_qt_metacall(sipPySelf,sipType_Soprano_Server_ServerCore,_c,_id,_a);

    return _id;
}

void *sipSoprano_Server_ServerCore::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Server_ServerCore,_clname)) ? this : Soprano::Server::ServerCore::qt_metacast(_clname);
}

Soprano::Model * sipSoprano_Server_ServerCore::model(const QString& a0)
{
    extern Soprano::Model * sipVH_soprano_4(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_model);

    if (!meth)
        return Soprano::Server::ServerCore::model(a0);

    return sipVH_soprano_4(sipGILState,meth,a0);
}

void sipSoprano_Server_ServerCore::removeModel(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_removeModel);

    if (!meth)
    {
        Soprano::Server::ServerCore::removeModel(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_soprano_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

QStringList sipSoprano_Server_ServerCore::allModels() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_allModels);

    if (!meth)
        return Soprano::Server::ServerCore::allModels();

    return ((sipVH_QtCore_23)(sipModuleAPI_soprano_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

Soprano::Model * sipSoprano_Server_ServerCore::createModel(const QList<Soprano::BackendSetting>& a0)
{
    extern Soprano::Model * sipVH_soprano_3(sip_gilstate_t,PyObject *,const QList<Soprano::BackendSetting>&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_createModel);

    if (!meth)
        return Soprano::Server::ServerCore::createModel(a0);

    return sipVH_soprano_3(sipGILState,meth,a0);
}

bool sipSoprano_Server_ServerCore::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_soprano_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipSoprano_Server_ServerCore::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_soprano_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipSoprano_Server_ServerCore::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_soprano_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipSoprano_Server_ServerCore::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_soprano_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipSoprano_Server_ServerCore::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_soprano_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipSoprano_Server_ServerCore::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipSoprano_Server_ServerCore::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

Soprano::Error::Error sipSoprano_Server_ServerCore::lastError() const
{
    extern Soprano::Error::Error sipVH_soprano_26(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_lastError);

    if (!meth)
        return Soprano::Error::ErrorCache::lastError();

    return sipVH_soprano_26(sipGILState,meth);
}

void sipSoprano_Server_ServerCore::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

void sipSoprano_Server_ServerCore::sipProtect_setError(const Soprano::Error::Error& a0) const
{
    Soprano::Error::ErrorCache::setError(a0);
}

void sipSoprano_Server_ServerCore::sipProtect_setError(const QString& a0,int a1) const
{
    Soprano::Error::ErrorCache::setError(a0,a1);
}

int sipSoprano_Server_ServerCore::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipSoprano_Server_ServerCore::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipSoprano_Server_ServerCore::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipSoprano_Server_ServerCore::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipSoprano_Server_ServerCore::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipSoprano_Server_ServerCore::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

Soprano::Model * sipSoprano_Server_ServerCore::sipProtectVirt_createModel(bool sipSelfWasArg,const QList<Soprano::BackendSetting>& a0)
{
    return (sipSelfWasArg ? Soprano::Server::ServerCore::createModel(a0) : createModel(a0));
}


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

    {
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Error::Error * a0;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_Soprano_Error_Error,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        int a1 = Soprano::Error::ErrorUnknown;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|i",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 2773 "sipsopranopart2.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Backend * a0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_Soprano_Backend,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBackend(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp))
        {
            const Soprano::Backend *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->backend();
            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. */
    sipNoMethod(sipArgsParsed,sipName_ServerCore,sipName_backend);

    return NULL;
}


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

    {
        const QList<Soprano::BackendSetting> * a0;
        int a0State = 0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QList_0200Soprano_BackendSetting,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBackendSettings(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Soprano::BackendSetting> *>(a0),sipType_QList_0200Soprano_BackendSetting,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp))
        {
            QList<Soprano::BackendSetting> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::BackendSetting>(sipCpp->backendSettings());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_model(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_model(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Soprano::Model *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Server::ServerCore::model(*a0) : sipCpp->model(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_removeModel(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_removeModel(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Soprano::Server::ServerCore::removeModel(*a0) : sipCpp->removeModel(*a0));
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_allModels(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_allModels(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Server::ServerCore *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Soprano::Server::ServerCore::allModels() : sipCpp->allModels()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J1",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        quint16 a0 = Soprano::Server::ServerCore::DEFAULT_PORT;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|t",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listen(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp))
        {
            quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serverPort();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J1",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->registerAsDBusObject(*a0);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_createModel(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_createModel(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QList<Soprano::BackendSetting> * a0;
        int a0State = 0;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_Soprano_Server_ServerCore,&sipCpp,sipType_QList_0200Soprano_BackendSetting,&a0,&a0State))
        {
            Soprano::Model *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createModel(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Soprano::BackendSetting> *>(a0),sipType_QList_0200Soprano_BackendSetting,a0State);

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Server_ServerCore)
        return ptr;

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

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Error_ErrorCache)->ctd_cast((Soprano::Error::ErrorCache *)(Soprano::Server::ServerCore *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Server_ServerCore *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Server::ServerCore *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Server_ServerCore(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Server_ServerCore[] = {
    {SIP_MLNAME_CAST(sipName_allModels), meth_Soprano_Server_ServerCore_allModels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_backend), meth_Soprano_Server_ServerCore_backend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_backendSettings), meth_Soprano_Server_ServerCore_backendSettings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Server_ServerCore_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Server_ServerCore_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Server_ServerCore_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_Server_ServerCore_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Server_ServerCore_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Server_ServerCore_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listen), meth_Soprano_Server_ServerCore_listen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_model), meth_Soprano_Server_ServerCore_model, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Server_ServerCore_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerAsDBusObject), meth_Soprano_Server_ServerCore_registerAsDBusObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeModel), meth_Soprano_Server_ServerCore_removeModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serverPort), meth_Soprano_Server_ServerCore_serverPort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBackend), meth_Soprano_Server_ServerCore_setBackend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBackendSettings), meth_Soprano_Server_ServerCore_setBackendSettings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Server_ServerCore_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Soprano_Server_ServerCore_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Server_ServerCore_timerEvent, METH_VARARGS, NULL}
};


extern "C" {static PyObject *varget_Soprano_Server_ServerCore_DEFAULT_PORT(void *, PyObject *);}
static PyObject *varget_Soprano_Server_ServerCore_DEFAULT_PORT(void *sipSelf, PyObject *)
{
    quint16 sipVal;
    Soprano::Server::ServerCore *sipCpp = reinterpret_cast<Soprano::Server::ServerCore *>(sipSelf);

    sipVal = sipCpp->DEFAULT_PORT;

    return PyLong_FromUnsignedLong(sipVal);
}

sipVariableDef variables_Soprano_Server_ServerCore[] = {
    {sipName_DEFAULT_PORT, varget_Soprano_Server_ServerCore_DEFAULT_PORT, NULL, 0},
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Server_ServerCore = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Server__ServerCore,
        {0}
    },
    sipNameNr_ServerCore,
    -1,
    -1,
    {68, 255, 0},
    supers_Soprano_Server_ServerCore,
    0,
    20, methods_Soprano_Server_ServerCore,
    0, 0,
    1, variables_Soprano_Server_ServerCore,
    init_Soprano_Server_ServerCore,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Server_ServerCore,
    release_Soprano_Server_ServerCore,
    cast_Soprano_Server_ServerCore,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Server::ServerCore::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 3443 "sipsopranopart2.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3447 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 3450 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3453 "sipsopranopart2.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 3456 "sipsopranopart2.cpp"


class sipSoprano_Serializer : public Soprano::Serializer
{
public:
    sipSoprano_Serializer(const QString&);
    virtual ~sipSoprano_Serializer();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::RdfSerializations supportedSerializations() const;
    QStringList supportedUserSerializations() const;
    bool serialize(Soprano::StatementIterator,QTextStream&,Soprano::RdfSerialization,const QString&) const;
    bool isAvailable() const;
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSoprano_Serializer(const sipSoprano_Serializer &);
    sipSoprano_Serializer &operator = (const sipSoprano_Serializer &);

    char sipPyMethods[5];
};

sipSoprano_Serializer::sipSoprano_Serializer(const QString& a0): Soprano::Serializer(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

Soprano::RdfSerializations sipSoprano_Serializer::supportedSerializations() const
{
    extern Soprano::RdfSerializations sipVH_soprano_6(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_Serializer,sipName_supportedSerializations);

    if (!meth)
        return Soprano::RdfSerializations();

    return sipVH_soprano_6(sipGILState,meth);
}

QStringList sipSoprano_Serializer::supportedUserSerializations() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_supportedUserSerializations);

    if (!meth)
        return Soprano::Serializer::supportedUserSerializations();

    return ((sipVH_QtCore_23)(sipModuleAPI_soprano_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

bool sipSoprano_Serializer::serialize(Soprano::StatementIterator a0,QTextStream& a1,Soprano::RdfSerialization a2,const QString& a3) const
{
    extern bool sipVH_soprano_5(sip_gilstate_t,PyObject *,Soprano::StatementIterator,QTextStream&,Soprano::RdfSerialization,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_Serializer,sipName_serialize);

    if (!meth)
        return 0;

    return sipVH_soprano_5(sipGILState,meth,a0,a1,a2,a3);
}

bool sipSoprano_Serializer::isAvailable() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_isAvailable);

    if (!meth)
        return Soprano::Plugin::isAvailable();

    return ((sipVH_QtCore_1)(sipModuleAPI_soprano_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

Soprano::Error::Error sipSoprano_Serializer::lastError() const
{
    extern Soprano::Error::Error sipVH_soprano_26(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_lastError);

    if (!meth)
        return Soprano::Error::ErrorCache::lastError();

    return sipVH_soprano_26(sipGILState,meth);
}

void sipSoprano_Serializer::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

void sipSoprano_Serializer::sipProtect_setError(const Soprano::Error::Error& a0) const
{
    Soprano::Error::ErrorCache::setError(a0);
}

void sipSoprano_Serializer::sipProtect_setError(const QString& a0,int a1) const
{
    Soprano::Error::ErrorCache::setError(a0,a1);
}


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

    {
        sipSoprano_Serializer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_Serializer,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Error::Error * a0;
        sipSoprano_Serializer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Serializer,&sipCpp,sipType_Soprano_Error_Error,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        int a1 = Soprano::Error::ErrorUnknown;
        sipSoprano_Serializer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|i",&sipSelf,sipType_Soprano_Serializer,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_supportedSerializations(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_supportedSerializations(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Serializer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Serializer,&sipCpp))
        {
            Soprano::RdfSerializations *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Serializer, sipName_supportedSerializations);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::RdfSerializations(sipCpp->supportedSerializations());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_supportedUserSerializations(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_supportedUserSerializations(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Serializer *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Soprano::Serializer::supportedUserSerializations() : sipCpp->supportedUserSerializations()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE|J1",&sipSelf,sipType_Soprano_Serializer,&sipCpp,sipType_Soprano_RdfSerialization,&a0,sipType_QString,&a1,&a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportsSerialization(a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_serialize(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_serialize(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::StatementIterator * a0;
        QTextStream * a1;
        Soprano::RdfSerialization a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;
        Soprano::Serializer *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9E|J1",&sipSelf,sipType_Soprano_Serializer,&sipCpp,sipType_Soprano_StatementIterator,&a0,sipType_QTextStream,&a1,sipType_Soprano_RdfSerialization,&a2,sipType_QString,&a3,&a3State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Serializer, sipName_serialize);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serialize(*a0,*a1,a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Serializer)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Plugin)->ctd_cast((Soprano::Plugin *)(Soprano::Serializer *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Error_ErrorCache)->ctd_cast((Soprano::Error::ErrorCache *)(Soprano::Serializer *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Serializer *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Serializer *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Soprano_Serializer[] = {{56, 255, 0}, {29, 255, 1}};


static PyMethodDef methods_Soprano_Serializer[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Serializer_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialize), meth_Soprano_Serializer_serialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Serializer_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedSerializations), meth_Soprano_Serializer_supportedSerializations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedUserSerializations), meth_Soprano_Serializer_supportedUserSerializations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportsSerialization), meth_Soprano_Serializer_supportsSerialization, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Serializer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Serializer,
        {0}
    },
    sipNameNr_Serializer,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_Serializer,
    0,
    6, methods_Soprano_Serializer,
    0, 0,
    0, 0,
    init_Soprano_Serializer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Serializer,
    release_Soprano_Serializer,
    cast_Soprano_Serializer,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3940 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 3943 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3946 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 3949 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 3952 "sipsopranopart2.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 3955 "sipsopranopart2.cpp"


class sipSoprano_QueryResultIteratorBackend : public Soprano::QueryResultIteratorBackend
{
public:
    sipSoprano_QueryResultIteratorBackend();
    virtual ~sipSoprano_QueryResultIteratorBackend();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool next();
    Soprano::BindingSet current() const;
    Soprano::Statement currentStatement() const;
    Soprano::Node binding(const QString&) const;
    Soprano::Node binding(int) const;
    int bindingCount() const;
    QStringList bindingNames() const;
    bool isGraph() const;
    bool isBinding() const;
    bool isBool() const;
    bool boolValue() const;
    void close();
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSoprano_QueryResultIteratorBackend(const sipSoprano_QueryResultIteratorBackend &);
    sipSoprano_QueryResultIteratorBackend &operator = (const sipSoprano_QueryResultIteratorBackend &);

    char sipPyMethods[13];
};

sipSoprano_QueryResultIteratorBackend::sipSoprano_QueryResultIteratorBackend(): Soprano::QueryResultIteratorBackend(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipSoprano_QueryResultIteratorBackend::next()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_QueryResultIteratorBackend,sipName_next);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_soprano_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

Soprano::BindingSet sipSoprano_QueryResultIteratorBackend::current() const
{
    extern Soprano::BindingSet sipVH_soprano_10(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_current);

    if (!meth)
        return Soprano::QueryResultIteratorBackend::current();

    return sipVH_soprano_10(sipGILState,meth);
}

Soprano::Statement sipSoprano_QueryResultIteratorBackend::currentStatement() const
{
    extern Soprano::Statement sipVH_soprano_9(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_currentStatement);

    if (!meth)
        return Soprano::Statement();

    return sipVH_soprano_9(sipGILState,meth);
}

Soprano::Node sipSoprano_QueryResultIteratorBackend::binding(const QString& a0) const
{
    extern Soprano::Node sipVH_soprano_8(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_binding);

    if (!meth)
        return Soprano::Node();

    return sipVH_soprano_8(sipGILState,meth,a0);
}

Soprano::Node sipSoprano_QueryResultIteratorBackend::binding(int a0) const
{
    extern Soprano::Node sipVH_soprano_7(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_binding);

    if (!meth)
        return Soprano::Node();

    return sipVH_soprano_7(sipGILState,meth,a0);
}

int sipSoprano_QueryResultIteratorBackend::bindingCount() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_bindingCount);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_8)(sipModuleAPI_soprano_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

QStringList sipSoprano_QueryResultIteratorBackend::bindingNames() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_bindingNames);

    if (!meth)
        return QStringList();

    return ((sipVH_QtCore_23)(sipModuleAPI_soprano_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

bool sipSoprano_QueryResultIteratorBackend::isGraph() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_isGraph);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_soprano_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipSoprano_QueryResultIteratorBackend::isBinding() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_isBinding);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_soprano_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipSoprano_QueryResultIteratorBackend::isBool() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_isBool);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_soprano_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipSoprano_QueryResultIteratorBackend::boolValue() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,sipName_QueryResultIteratorBackend,sipName_boolValue);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_soprano_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipSoprano_QueryResultIteratorBackend::close()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_QueryResultIteratorBackend,sipName_close);

    if (!meth)
        return;

    ((sipVH_QtCore_5)(sipModuleAPI_soprano_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

Soprano::Error::Error sipSoprano_QueryResultIteratorBackend::lastError() const
{
    extern Soprano::Error::Error sipVH_soprano_26(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_lastError);

    if (!meth)
        return Soprano::Error::ErrorCache::lastError();

    return sipVH_soprano_26(sipGILState,meth);
}

void sipSoprano_QueryResultIteratorBackend::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

void sipSoprano_QueryResultIteratorBackend::sipProtect_setError(const Soprano::Error::Error& a0) const
{
    Soprano::Error::ErrorCache::setError(a0);
}

void sipSoprano_QueryResultIteratorBackend::sipProtect_setError(const QString& a0,int a1) const
{
    Soprano::Error::ErrorCache::setError(a0,a1);
}


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

    {
        sipSoprano_QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_QueryResultIteratorBackend,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Error::Error * a0;
        sipSoprano_QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_QueryResultIteratorBackend,&sipCpp,sipType_Soprano_Error_Error,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        int a1 = Soprano::Error::ErrorUnknown;
        sipSoprano_QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|i",&sipSelf,sipType_Soprano_QueryResultIteratorBackend,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_next(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_next(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_next);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->next();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_current(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_current(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_QueryResultIteratorBackend,&sipCpp))
        {
            Soprano::BindingSet *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BindingSet((sipSelfWasArg ? sipCpp->Soprano::QueryResultIteratorBackend::current() : sipCpp->current()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_currentStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_currentStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_QueryResultIteratorBackend,&sipCpp))
        {
            Soprano::Statement *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_currentStatement);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Statement(sipCpp->currentStatement());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_binding(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_binding(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_QueryResultIteratorBackend,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Soprano::Node *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_binding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->binding(*a0));
            Py_END_ALLOW_THREADS

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

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

    {
        int a0;
        Soprano::QueryResultIteratorBackend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Soprano_QueryResultIteratorBackend,&sipCpp,&a0))
        {
            Soprano::Node *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_binding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->binding(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_bindingCount(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_bindingCount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_bindingCount);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bindingCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_bindingNames(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_bindingNames(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_bindingNames);
                return NULL;
            }

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_isGraph(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_isGraph(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_isGraph);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isGraph();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_isBinding(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_isBinding(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_isBinding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBinding();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_isBool(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_isBool(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_isBool);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackend_boolValue(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackend_boolValue(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackend *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackend, sipName_boolValue);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->boolValue();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_QueryResultIteratorBackend)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_QueryResultIteratorBackendBase)->ctd_cast((Soprano::QueryResultIteratorBackendBase *)(Soprano::QueryResultIteratorBackend *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_QueryResultIteratorBackend *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::QueryResultIteratorBackend *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_QueryResultIteratorBackend[] = {
    {SIP_MLNAME_CAST(sipName_binding), meth_Soprano_QueryResultIteratorBackend_binding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindingCount), meth_Soprano_QueryResultIteratorBackend_bindingCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindingNames), meth_Soprano_QueryResultIteratorBackend_bindingNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_boolValue), meth_Soprano_QueryResultIteratorBackend_boolValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_QueryResultIteratorBackend_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_QueryResultIteratorBackend_current, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentStatement), meth_Soprano_QueryResultIteratorBackend_currentStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBinding), meth_Soprano_QueryResultIteratorBackend_isBinding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBool), meth_Soprano_QueryResultIteratorBackend_isBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isGraph), meth_Soprano_QueryResultIteratorBackend_isGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_QueryResultIteratorBackend_next, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_QueryResultIteratorBackend_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_QueryResultIteratorBackend = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__QueryResultIteratorBackend,
        {0}
    },
    sipNameNr_QueryResultIteratorBackend,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_QueryResultIteratorBackend,
    0,
    12, methods_Soprano_QueryResultIteratorBackend,
    0, 0,
    0, 0,
    init_Soprano_QueryResultIteratorBackend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_QueryResultIteratorBackend,
    release_Soprano_QueryResultIteratorBackend,
    cast_Soprano_QueryResultIteratorBackend,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 4788 "sipsopranopart2.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 4791 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4794 "sipsopranopart2.cpp"


class sipSoprano_QueryResultIteratorBackendBase : public Soprano::QueryResultIteratorBackendBase
{
public:
    sipSoprano_QueryResultIteratorBackendBase();
    virtual ~sipSoprano_QueryResultIteratorBackendBase();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool next();
    Soprano::BindingSet current() const;
    void close();
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSoprano_QueryResultIteratorBackendBase(const sipSoprano_QueryResultIteratorBackendBase &);
    sipSoprano_QueryResultIteratorBackendBase &operator = (const sipSoprano_QueryResultIteratorBackendBase &);

    char sipPyMethods[4];
};

sipSoprano_QueryResultIteratorBackendBase::sipSoprano_QueryResultIteratorBackendBase(): Soprano::QueryResultIteratorBackendBase(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipSoprano_QueryResultIteratorBackendBase::next()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_QueryResultIteratorBackendBase,sipName_next);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_soprano_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

Soprano::BindingSet sipSoprano_QueryResultIteratorBackendBase::current() const
{
    extern Soprano::BindingSet sipVH_soprano_11(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_QueryResultIteratorBackendBase,sipName_current);

    if (!meth)
        return Soprano::BindingSet();

    return sipVH_soprano_11(sipGILState,meth);
}

void sipSoprano_QueryResultIteratorBackendBase::close()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_QueryResultIteratorBackendBase,sipName_close);

    if (!meth)
        return;

    ((sipVH_QtCore_5)(sipModuleAPI_soprano_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

Soprano::Error::Error sipSoprano_QueryResultIteratorBackendBase::lastError() const
{
    extern Soprano::Error::Error sipVH_soprano_26(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_lastError);

    if (!meth)
        return Soprano::Error::ErrorCache::lastError();

    return sipVH_soprano_26(sipGILState,meth);
}

void sipSoprano_QueryResultIteratorBackendBase::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

void sipSoprano_QueryResultIteratorBackendBase::sipProtect_setError(const Soprano::Error::Error& a0) const
{
    Soprano::Error::ErrorCache::setError(a0);
}

void sipSoprano_QueryResultIteratorBackendBase::sipProtect_setError(const QString& a0,int a1) const
{
    Soprano::Error::ErrorCache::setError(a0,a1);
}


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

    {
        sipSoprano_QueryResultIteratorBackendBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_QueryResultIteratorBackendBase,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Error::Error * a0;
        sipSoprano_QueryResultIteratorBackendBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_QueryResultIteratorBackendBase,&sipCpp,sipType_Soprano_Error_Error,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        int a1 = Soprano::Error::ErrorUnknown;
        sipSoprano_QueryResultIteratorBackendBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|i",&sipSelf,sipType_Soprano_QueryResultIteratorBackendBase,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackendBase_next(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackendBase_next(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackendBase *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackendBase, sipName_next);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->next();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackendBase_current(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackendBase_current(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackendBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_QueryResultIteratorBackendBase,&sipCpp))
        {
            Soprano::BindingSet *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackendBase, sipName_current);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BindingSet(sipCpp->current());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_QueryResultIteratorBackendBase_close(PyObject *, PyObject *);}
static PyObject *meth_Soprano_QueryResultIteratorBackendBase_close(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::QueryResultIteratorBackendBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_QueryResultIteratorBackendBase,&sipCpp))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_QueryResultIteratorBackendBase, sipName_close);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->close();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_QueryResultIteratorBackendBase)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Error_ErrorCache)->ctd_cast((Soprano::Error::ErrorCache *)(Soprano::QueryResultIteratorBackendBase *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_QueryResultIteratorBackendBase *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::QueryResultIteratorBackendBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_QueryResultIteratorBackendBase[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_QueryResultIteratorBackendBase_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Soprano_QueryResultIteratorBackendBase_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_QueryResultIteratorBackendBase_current, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_QueryResultIteratorBackendBase_next, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_QueryResultIteratorBackendBase_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_QueryResultIteratorBackendBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__QueryResultIteratorBackendBase,
        {0}
    },
    sipNameNr_QueryResultIteratorBackendBase,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_QueryResultIteratorBackendBase,
    0,
    5, methods_Soprano_QueryResultIteratorBackendBase,
    0, 0,
    0, 0,
    init_Soprano_QueryResultIteratorBackendBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_QueryResultIteratorBackendBase,
    release_Soprano_QueryResultIteratorBackendBase,
    cast_Soprano_QueryResultIteratorBackendBase,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5235 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5238 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 5241 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 5244 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 5247 "sipsopranopart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 5250 "sipsopranopart2.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 5253 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 5256 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 5259 "sipsopranopart2.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 5262 "sipsopranopart2.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5265 "sipsopranopart2.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 5268 "sipsopranopart2.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5271 "sipsopranopart2.cpp"


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

    {
        Soprano::QueryResultIteratorBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIteratorBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->next();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_QueryResultIteratorBase,&sipCpp))
        {
            Soprano::BindingSet *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BindingSet(sipCpp->current());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::QueryResultIteratorBase *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_QueryResultIteratorBase,&sipCpp))
        {
            QList<Soprano::BindingSet> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::BindingSet>(sipCpp->allElements());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_QueryResultIteratorBase)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Error_ErrorCache)->ctd_cast((Soprano::Error::ErrorCache *)(Soprano::QueryResultIteratorBase *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Soprano_QueryResultIteratorBase[] = {
    {SIP_MLNAME_CAST(sipName_allElements), meth_Soprano_QueryResultIteratorBase_allElements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Soprano_QueryResultIteratorBase_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_QueryResultIteratorBase_current, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_QueryResultIteratorBase_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_QueryResultIteratorBase_next, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_QueryResultIteratorBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__QueryResultIteratorBase,
        {0}
    },
    sipNameNr_QueryResultIteratorBase,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_QueryResultIteratorBase,
    0,
    5, methods_Soprano_QueryResultIteratorBase,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_QueryResultIteratorBase,
    release_Soprano_QueryResultIteratorBase,
    cast_Soprano_QueryResultIteratorBase,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
