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

#include "sipAPIsoprano.h"

#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 12 "sipsopranopart7.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 16 "sipsopranopart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "sipsopranopart7.cpp"


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

    {
        Soprano::BackendSetting *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_BackendSetting,&sipCpp))
        {
            Soprano::BackendOption sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->option();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_BackendOption);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::BackendSetting *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::BackendSetting *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QVariant * a0;
        int a0State = 0;
        Soprano::BackendSetting *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_BackendSetting,&sipCpp,sipType_QVariant,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_BackendSetting(void *, const void*);}
static void assign_Soprano_BackendSetting(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::BackendSetting *>(sipDst) = *reinterpret_cast<const Soprano::BackendSetting *>(sipSrc);
}


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


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

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

    if (!sipCpp)
    {
        Soprano::BackendOption a0;

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

    if (!sipCpp)
    {
        Soprano::BackendOption a0;
        const QVariant * a1;
        int a1State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"EJ1",sipType_Soprano_BackendOption,&a0,sipType_QVariant,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::BackendSetting(a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);
        }
    }

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1",sipType_QString,&a0,&a0State,sipType_QVariant,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::BackendSetting(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);
        }
    }

    if (!sipCpp)
    {
        const Soprano::BackendSetting * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_BackendSetting,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::BackendSetting(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_Soprano_BackendSetting[] = {
    {SIP_MLNAME_CAST(sipName_option), meth_Soprano_BackendSetting_option, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setValue), meth_Soprano_BackendSetting_setValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_userOptionName), meth_Soprano_BackendSetting_userOptionName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_Soprano_BackendSetting_value, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_BackendSetting = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__BackendSetting,
        {0}
    },
    sipNameNr_BackendSetting,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    0,
    4, methods_Soprano_BackendSetting,
    0, 0,
    0, 0,
    init_Soprano_BackendSetting,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_BackendSetting,
    release_Soprano_BackendSetting,
    cast_Soprano_BackendSetting,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_BackendSetting,
    0,
    0,
    0
};

#line 79 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 305 "sipsopranopart7.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 309 "sipsopranopart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 312 "sipsopranopart7.cpp"


class sipSoprano_Error_ErrorCache : public Soprano::Error::ErrorCache
{
public:
    sipSoprano_Error_ErrorCache();
    virtual ~sipSoprano_Error_ErrorCache();

    /*
     * 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::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipSoprano_Error_ErrorCache::sipSoprano_Error_ErrorCache(): Soprano::Error::ErrorCache(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

Soprano::Error::Error sipSoprano_Error_ErrorCache::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[0]),sipPySelf,NULL,sipName_lastError);

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        Soprano::Error::ErrorCache *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Error::Error((sipSelfWasArg ? sipCpp->Soprano::Error::ErrorCache::lastError() : sipCpp->lastError()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        sipSoprano_Error_ErrorCache *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_Error_ErrorCache,&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_ErrorCache,sipName_clearError);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Error_ErrorCache,&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_Error_ErrorCache *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|i",&sipSelf,sipType_Soprano_Error_ErrorCache,&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_ErrorCache,sipName_setError);

    return NULL;
}


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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Error_ErrorCache *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Error::ErrorCache *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_Soprano_Error_ErrorCache[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Error_ErrorCache_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastError), meth_Soprano_Error_ErrorCache_lastError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Error_ErrorCache_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Error_ErrorCache = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Error__ErrorCache,
        {0}
    },
    sipNameNr_ErrorCache,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {27, 255, 0},
    0,
    0,
    3, methods_Soprano_Error_ErrorCache,
    0, 0,
    0, 0,
    init_Soprano_Error_ErrorCache,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Error_ErrorCache,
    release_Soprano_Error_ErrorCache,
    cast_Soprano_Error_ErrorCache,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 602 "sipsopranopart7.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/locator.sip"
#include <soprano/locator.h>
#line 606 "sipsopranopart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 609 "sipsopranopart7.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 612 "sipsopranopart7.cpp"


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

    {
        Soprano::Error::ParserError *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Error_ParserError,&sipCpp))
        {
            Soprano::Error::Locator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Error::Locator(sipCpp->locator());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Error_ParserError)
        return ptr;

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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Error::ParserError *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_Error_ParserError(void *, const void*);}
static void assign_Soprano_Error_ParserError(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::Error::ParserError *>(sipDst) = *reinterpret_cast<const Soprano::Error::ParserError *>(sipSrc);
}


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


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

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

    if (!sipCpp)
    {
        const Soprano::Error::Locator * a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        int a2 = Soprano::Error::ErrorParsingFailed;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|J1i",sipType_Soprano_Error_Locator,&a0,sipType_QString,&a1,&a1State,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Error::ParserError(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const Soprano::Error::Error * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Error_Error,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Error::ParserError(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Soprano::Error::ParserError * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Error_ParserError,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Error::ParserError(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Error_ParserError[] = {
    {SIP_MLNAME_CAST(sipName_locator), meth_Soprano_Error_ParserError_locator, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Error_ParserError = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Error__ParserError,
        {0}
    },
    sipNameNr_ParserError,
    -1,
    -1,
    {27, 255, 0},
    supers_Soprano_Error_ParserError,
    0,
    1, methods_Soprano_Error_ParserError,
    0, 0,
    0, 0,
    init_Soprano_Error_ParserError,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Error_ParserError,
    release_Soprano_Error_ParserError,
    cast_Soprano_Error_ParserError,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Error_ParserError,
    0,
    0,
    0
};

#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 804 "sipsopranopart7.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 808 "sipsopranopart7.cpp"
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 811 "sipsopranopart7.cpp"


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

    {
        Soprano::Error::Error *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Error::Error *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->code();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Error *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isParserError();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Error *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Error_Error,&sipCpp))
        {
            Soprano::Error::ParserError *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Error::ParserError(sipCpp->toParserError());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_Error_Error(void *, const void*);}
static void assign_Soprano_Error_Error(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::Error::Error *>(sipDst) = *reinterpret_cast<const Soprano::Error::Error *>(sipSrc);
}


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


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

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

    if (!sipCpp)
    {
        const QString * a0;
        int a0State = 0;
        int a1 = Soprano::Error::ErrorUnknown;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1|i",sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Error::Error(*a0,a1);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        const Soprano::Error::Error * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Error_Error,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Error::Error(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


static PyMethodDef methods_Soprano_Error_Error[] = {
    {SIP_MLNAME_CAST(sipName_code), meth_Soprano_Error_Error_code, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isParserError), meth_Soprano_Error_Error_isParserError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_message), meth_Soprano_Error_Error_message, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toParserError), meth_Soprano_Error_Error_toParserError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Error_Error = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Error__Error,
        {0}
    },
    sipNameNr_Error,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {27, 255, 0},
    0,
    0,
    4, methods_Soprano_Error_Error,
    0, 0,
    0, 0,
    init_Soprano_Error_Error,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Error_Error,
    release_Soprano_Error_Error,
    cast_Soprano_Error_Error,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Error_Error,
    0,
    0,
    0
};


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


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

    {
        int a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"i",&a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::Error::convertErrorCode(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::ErrorCode a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Soprano::Error::errorMessage(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


static PyMethodDef methods_Soprano_Error[] = {
    {SIP_MLNAME_CAST(sipName_convertErrorCode), meth_Soprano_Error_convertErrorCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorMessage), meth_Soprano_Error_errorMessage, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Soprano_Error[] = {
    {sipName_ErrorInvalidArgument, Soprano::Error::ErrorInvalidArgument, 30},
    {sipName_ErrorInvalidStatement, Soprano::Error::ErrorInvalidStatement, 30},
    {sipName_ErrorNone, Soprano::Error::ErrorNone, 30},
    {sipName_ErrorNotSupported, Soprano::Error::ErrorNotSupported, 30},
    {sipName_ErrorParsingFailed, Soprano::Error::ErrorParsingFailed, 30},
    {sipName_ErrorPermissionDenied, Soprano::Error::ErrorPermissionDenied, 30},
    {sipName_ErrorUnknown, Soprano::Error::ErrorUnknown, 30},
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Error = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Error,
        {0}
    },
    sipNameNr_Error,
    -1,
    -1,
    {10, 255, 0},
    0,
    0,
    2, methods_Soprano_Error,
    7, enummembers_Soprano_Error,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 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 1204 "sipsopranopart7.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 1207 "sipsopranopart7.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 1210 "sipsopranopart7.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 1213 "sipsopranopart7.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 1216 "sipsopranopart7.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 1219 "sipsopranopart7.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 1222 "sipsopranopart7.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 1225 "sipsopranopart7.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 1228 "sipsopranopart7.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 1231 "sipsopranopart7.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 1234 "sipsopranopart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1237 "sipsopranopart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1240 "sipsopranopart7.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1243 "sipsopranopart7.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 1246 "sipsopranopart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/literalvalue.sip"
#include <soprano/literalvalue.h>
#line 1249 "sipsopranopart7.cpp"


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

    {
        const QString * a0;
        int a0State = 0;

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_RdfSerialization);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Soprano::serializationMimeType(a0,*a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const Soprano::LanguageTag * a0;

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

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

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        const Soprano::LiteralValue * a0;

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

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

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;

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

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

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QList_0200Soprano_BackendSetting,&a0,&a0State))
        {
            Soprano::Model *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::createModel(*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. */
    sipNoFunction(sipArgsParsed,sipName_createModel);

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::usedBackend();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Soprano::Backend * a0;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::discoverBackendByFeatures(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(a0,sipType_Soprano_BackendFeatures,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(Soprano::valueInSettings(*a0,a1,*a2));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0200Soprano_BackendSetting,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = &Soprano::settingInSettings(*a0,a1,*a2);
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::isOptionInSettings(*a0,a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0200Soprano_BackendSetting,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano,
        {0}
    },
    sipNameNr_Soprano,
    -1,
    -1,
    {0, 0, 1},
    0,
    0,
    11, methods_Soprano,
    28, enummembers_Soprano,
    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
};
