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

#include "sipAPIsoprano.h"

#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 30 "sipsopranopart3.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 34 "sipsopranopart3.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 37 "sipsopranopart3.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 40 "sipsopranopart3.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 43 "sipsopranopart3.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 46 "sipsopranopart3.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 49 "sipsopranopart3.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 52 "sipsopranopart3.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 55 "sipsopranopart3.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 58 "sipsopranopart3.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 61 "sipsopranopart3.cpp"


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0200Soprano_LanguageTag(void *, int);}
static void release_QList_0200Soprano_LanguageTag(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<Soprano::LanguageTag> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 74 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_Soprano_LanguageTag, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<Soprano::LanguageTag> *ql = new QList<Soprano::LanguageTag>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        Soprano::LanguageTag *t = reinterpret_cast<Soprano::LanguageTag *>(sipConvertToType(itm, sipType_Soprano_LanguageTag, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_Soprano_LanguageTag, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_Soprano_LanguageTag, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 137 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0200Soprano_LanguageTag(void *, PyObject *);}
static PyObject *convertFrom_QList_0200Soprano_LanguageTag(void *sipCppV,PyObject *sipTransferObj)
{
   QList<Soprano::LanguageTag> *sipCpp = reinterpret_cast<QList<Soprano::LanguageTag> *>(sipCppV);

#line 47 "/usr/local/share/py-sip/QtCore/qlist.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::LanguageTag *t = new Soprano::LanguageTag(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_Soprano_LanguageTag, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 171 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0200Soprano_LanguageTag = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1415,
        {0}
    },
    release_QList_0200Soprano_LanguageTag,
    convertTo_QList_0200Soprano_LanguageTag,
    convertFrom_QList_0200Soprano_LanguageTag
},
    assign_QList_0200Soprano_LanguageTag
};


extern "C" {static void assign_QList_0200Soprano_Inference_StatementPattern(void *, const void*);}
static void assign_QList_0200Soprano_Inference_StatementPattern(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<QList<Soprano::Inference::StatementPattern> *>(sipDst) = *reinterpret_cast<const QList<Soprano::Inference::StatementPattern> *>(sipSrc);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0200Soprano_Inference_StatementPattern(void *, int);}
static void release_QList_0200Soprano_Inference_StatementPattern(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<Soprano::Inference::StatementPattern> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 74 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_Soprano_Inference_StatementPattern, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<Soprano::Inference::StatementPattern> *ql = new QList<Soprano::Inference::StatementPattern>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        Soprano::Inference::StatementPattern *t = reinterpret_cast<Soprano::Inference::StatementPattern *>(sipConvertToType(itm, sipType_Soprano_Inference_StatementPattern, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_Soprano_Inference_StatementPattern, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_Soprano_Inference_StatementPattern, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 266 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0200Soprano_Inference_StatementPattern(void *, PyObject *);}
static PyObject *convertFrom_QList_0200Soprano_Inference_StatementPattern(void *sipCppV,PyObject *sipTransferObj)
{
   QList<Soprano::Inference::StatementPattern> *sipCpp = reinterpret_cast<QList<Soprano::Inference::StatementPattern> *>(sipCppV);

#line 47 "/usr/local/share/py-sip/QtCore/qlist.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Inference::StatementPattern *t = new Soprano::Inference::StatementPattern(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_Soprano_Inference_StatementPattern, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 300 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0200Soprano_Inference_StatementPattern = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_0,
        {0}
    },
    release_QList_0200Soprano_Inference_StatementPattern,
    convertTo_QList_0200Soprano_Inference_StatementPattern,
    convertFrom_QList_0200Soprano_Inference_StatementPattern
},
    assign_QList_0200Soprano_Inference_StatementPattern
};


extern "C" {static void assign_QList_0200Soprano_Inference_Rule(void *, const void*);}
static void assign_QList_0200Soprano_Inference_Rule(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<QList<Soprano::Inference::Rule> *>(sipDst) = *reinterpret_cast<const QList<Soprano::Inference::Rule> *>(sipSrc);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0200Soprano_Inference_Rule(void *, int);}
static void release_QList_0200Soprano_Inference_Rule(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<Soprano::Inference::Rule> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 74 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_Soprano_Inference_Rule, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<Soprano::Inference::Rule> *ql = new QList<Soprano::Inference::Rule>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        Soprano::Inference::Rule *t = reinterpret_cast<Soprano::Inference::Rule *>(sipConvertToType(itm, sipType_Soprano_Inference_Rule, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_Soprano_Inference_Rule, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_Soprano_Inference_Rule, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 395 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0200Soprano_Inference_Rule(void *, PyObject *);}
static PyObject *convertFrom_QList_0200Soprano_Inference_Rule(void *sipCppV,PyObject *sipTransferObj)
{
   QList<Soprano::Inference::Rule> *sipCpp = reinterpret_cast<QList<Soprano::Inference::Rule> *>(sipCppV);

#line 47 "/usr/local/share/py-sip/QtCore/qlist.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Inference::Rule *t = new Soprano::Inference::Rule(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_Soprano_Inference_Rule, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 429 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0200Soprano_Inference_Rule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_804,
        {0}
    },
    release_QList_0200Soprano_Inference_Rule,
    convertTo_QList_0200Soprano_Inference_Rule,
    convertFrom_QList_0200Soprano_Inference_Rule
},
    assign_QList_0200Soprano_Inference_Rule
};


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0200Soprano_BindingSet(void *, int);}
static void release_QList_0200Soprano_BindingSet(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<Soprano::BindingSet> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 74 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_Soprano_BindingSet, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<Soprano::BindingSet> *ql = new QList<Soprano::BindingSet>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        Soprano::BindingSet *t = reinterpret_cast<Soprano::BindingSet *>(sipConvertToType(itm, sipType_Soprano_BindingSet, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_Soprano_BindingSet, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_Soprano_BindingSet, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 524 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0200Soprano_BindingSet(void *, PyObject *);}
static PyObject *convertFrom_QList_0200Soprano_BindingSet(void *sipCppV,PyObject *sipTransferObj)
{
   QList<Soprano::BindingSet> *sipCpp = reinterpret_cast<QList<Soprano::BindingSet> *>(sipCppV);

#line 47 "/usr/local/share/py-sip/QtCore/qlist.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::BindingSet *t = new Soprano::BindingSet(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_Soprano_BindingSet, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 558 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0200Soprano_BindingSet = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1667,
        {0}
    },
    release_QList_0200Soprano_BindingSet,
    convertTo_QList_0200Soprano_BindingSet,
    convertFrom_QList_0200Soprano_BindingSet
},
    assign_QList_0200Soprano_BindingSet
};


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0200Soprano_Node(void *, int);}
static void release_QList_0200Soprano_Node(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<Soprano::Node> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 74 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_Soprano_Node, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<Soprano::Node> *ql = new QList<Soprano::Node>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        Soprano::Node *t = reinterpret_cast<Soprano::Node *>(sipConvertToType(itm, sipType_Soprano_Node, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_Soprano_Node, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_Soprano_Node, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 653 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0200Soprano_Node(void *, PyObject *);}
static PyObject *convertFrom_QList_0200Soprano_Node(void *sipCppV,PyObject *sipTransferObj)
{
   QList<Soprano::Node> *sipCpp = reinterpret_cast<QList<Soprano::Node> *>(sipCppV);

#line 47 "/usr/local/share/py-sip/QtCore/qlist.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Node *t = new Soprano::Node(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_Soprano_Node, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 687 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0200Soprano_Node = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3605,
        {0}
    },
    release_QList_0200Soprano_Node,
    convertTo_QList_0200Soprano_Node,
    convertFrom_QList_0200Soprano_Node
},
    assign_QList_0200Soprano_Node
};


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0200Soprano_Statement(void *, int);}
static void release_QList_0200Soprano_Statement(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<Soprano::Statement> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 74 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_Soprano_Statement, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<Soprano::Statement> *ql = new QList<Soprano::Statement>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        Soprano::Statement *t = reinterpret_cast<Soprano::Statement *>(sipConvertToType(itm, sipType_Soprano_Statement, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_Soprano_Statement, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_Soprano_Statement, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 782 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0200Soprano_Statement(void *, PyObject *);}
static PyObject *convertFrom_QList_0200Soprano_Statement(void *sipCppV,PyObject *sipTransferObj)
{
   QList<Soprano::Statement> *sipCpp = reinterpret_cast<QList<Soprano::Statement> *>(sipCppV);

#line 47 "/usr/local/share/py-sip/QtCore/qlist.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Statement *t = new Soprano::Statement(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_Soprano_Statement, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 816 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0200Soprano_Statement = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1964,
        {0}
    },
    release_QList_0200Soprano_Statement,
    convertTo_QList_0200Soprano_Statement,
    convertFrom_QList_0200Soprano_Statement
},
    assign_QList_0200Soprano_Statement
};


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0200Soprano_BackendSetting(void *, int);}
static void release_QList_0200Soprano_BackendSetting(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<Soprano::BackendSetting> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 74 "/usr/local/share/py-sip/QtCore/qlist.sip"
    SIP_SSIZE_T len;

    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PySequence_Check(sipPy) || (len = PySequence_Size(sipPy)) < 0)
            return 0;

        for (SIP_SSIZE_T i = 0; i < len; ++i)
        {
            PyObject *itm = PySequence_ITEM(sipPy, i);
            bool ok = (itm && sipCanConvertToType(itm, sipType_Soprano_BackendSetting, SIP_NOT_NONE));

            Py_XDECREF(itm);

            if (!ok)
                return 0;
        }

        return 1;
    }

    QList<Soprano::BackendSetting> *ql = new QList<Soprano::BackendSetting>;
    len = PySequence_Size(sipPy);
 
    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);
        int state;
        Soprano::BackendSetting *t = reinterpret_cast<Soprano::BackendSetting *>(sipConvertToType(itm, sipType_Soprano_BackendSetting, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));

        Py_DECREF(itm);
 
        if (*sipIsErr)
        {
            sipReleaseType(t, sipType_Soprano_BackendSetting, state);

            delete ql;
            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_Soprano_BackendSetting, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 911 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0200Soprano_BackendSetting(void *, PyObject *);}
static PyObject *convertFrom_QList_0200Soprano_BackendSetting(void *sipCppV,PyObject *sipTransferObj)
{
   QList<Soprano::BackendSetting> *sipCpp = reinterpret_cast<QList<Soprano::BackendSetting> *>(sipCppV);

#line 47 "/usr/local/share/py-sip/QtCore/qlist.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::BackendSetting *t = new Soprano::BackendSetting(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromNewType(t, sipType_Soprano_BackendSetting, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            delete t;

            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 945 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0200Soprano_BackendSetting = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_964,
        {0}
    },
    release_QList_0200Soprano_BackendSetting,
    convertTo_QList_0200Soprano_BackendSetting,
    convertFrom_QList_0200Soprano_BackendSetting
},
    assign_QList_0200Soprano_BackendSetting
};


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0211Soprano_Serializer(void *, int);}
static void release_QList_0211Soprano_Serializer(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<const Soprano::Serializer *> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 223 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;

        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
            if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Serializer, SIP_NOT_NONE))
                return 0;

        return 1;
    }

    QList<const Soprano::Serializer*> *ql = new QList<const Soprano::Serializer*>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        int state;
        const Soprano::Serializer*t = reinterpret_cast<const Soprano::Serializer*>(sipConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Serializer, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseInstance(const_cast<Soprano::Serializer*>(t), sipClass_Soprano_Serializer, state);

            delete ql;
            return 0;
        }
        ql->append(t);

        sipReleaseInstance(const_cast<Soprano::Serializer*>(t), sipClass_Soprano_Serializer, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1026 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0211Soprano_Serializer(void *, PyObject *);}
static PyObject *convertFrom_QList_0211Soprano_Serializer(void *sipCppV,PyObject *sipTransferObj)
{
   QList<const Soprano::Serializer *> *sipCpp = reinterpret_cast<QList<const Soprano::Serializer *> *>(sipCppV);

#line 198 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Serializer* t = const_cast<Soprano::Serializer*>(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromInstance(t, sipClass_Soprano_Serializer, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1058 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0211Soprano_Serializer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1527,
        {0}
    },
    release_QList_0211Soprano_Serializer,
    convertTo_QList_0211Soprano_Serializer,
    convertFrom_QList_0211Soprano_Serializer
},
    assign_QList_0211Soprano_Serializer
};


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0211Soprano_Parser(void *, int);}
static void release_QList_0211Soprano_Parser(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<const Soprano::Parser *> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 152 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;

        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
            if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Parser, SIP_NOT_NONE))
                return 0;

        return 1;
    }

    QList<const Soprano::Parser*> *ql = new QList<const Soprano::Parser*>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        int state;
        const Soprano::Parser*t = reinterpret_cast<const Soprano::Parser*>(sipConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Parser, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseInstance(const_cast<Soprano::Parser*>(t), sipClass_Soprano_Parser, state);

            delete ql;
            return 0;
        }
        ql->append(t);

        sipReleaseInstance(const_cast<Soprano::Parser*>(t), sipClass_Soprano_Parser, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1139 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0211Soprano_Parser(void *, PyObject *);}
static PyObject *convertFrom_QList_0211Soprano_Parser(void *sipCppV,PyObject *sipTransferObj)
{
   QList<const Soprano::Parser *> *sipCpp = reinterpret_cast<QList<const Soprano::Parser *> *>(sipCppV);

#line 127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Parser* t = const_cast<Soprano::Parser*>(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromInstance(t, sipClass_Soprano_Parser, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1171 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0211Soprano_Parser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2793,
        {0}
    },
    release_QList_0211Soprano_Parser,
    convertTo_QList_0211Soprano_Parser,
    convertFrom_QList_0211Soprano_Parser
},
    assign_QList_0211Soprano_Parser
};


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0211Soprano_Backend(void *, int);}
static void release_QList_0211Soprano_Backend(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast<QList<const Soprano::Backend *> *>(ptr);
    Py_END_ALLOW_THREADS
}



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

#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
    // Check the type if that is all that is required.
    if (sipIsErr == NULL)
    {
        if (!PyList_Check(sipPy))
            return 0;

        for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
            if (!sipCanConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Backend, SIP_NOT_NONE))
                return 0;

        return 1;
    }

    QList<const Soprano::Backend*> *ql = new QList<const Soprano::Backend*>;
 
    for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
    {
        int state;
        const Soprano::Backend*t = reinterpret_cast<const Soprano::Backend*>(sipConvertToInstance(PyList_GET_ITEM(sipPy, i), sipClass_Soprano_Backend, sipTransferObj, SIP_NOT_NONE, &state, sipIsErr));
 
        if (*sipIsErr)
        {
            sipReleaseInstance(const_cast<Soprano::Backend*>(t), sipClass_Soprano_Backend, state);

            delete ql;
            return 0;
        }
        ql->append(t);

        sipReleaseInstance(const_cast<Soprano::Backend*>(t), sipClass_Soprano_Backend, state);
    }
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1252 "sipsopranopart3.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0211Soprano_Backend(void *, PyObject *);}
static PyObject *convertFrom_QList_0211Soprano_Backend(void *sipCppV,PyObject *sipTransferObj)
{
   QList<const Soprano::Backend *> *sipCpp = reinterpret_cast<QList<const Soprano::Backend *> *>(sipCppV);

#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
    // Create the list.
    PyObject *l;

    if ((l = PyList_New(sipCpp->size())) == NULL)
        return NULL;

    // Set the list elements.
    for (int i = 0; i < sipCpp->size(); ++i)
    {
        Soprano::Backend* t = const_cast<Soprano::Backend*>(sipCpp->at(i));
        PyObject *tobj;

        if ((tobj = sipConvertFromInstance(t, sipClass_Soprano_Backend, sipTransferObj)) == NULL)
        {
            Py_DECREF(l);
            return NULL;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1284 "sipsopranopart3.cpp"
}


pyqt4MappedTypeDef pyqt4MappedTypeDef_soprano_QList_0211Soprano_Backend = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2451,
        {0}
    },
    release_QList_0211Soprano_Backend,
    convertTo_QList_0211Soprano_Backend,
    convertFrom_QList_0211Soprano_Backend
},
    assign_QList_0211Soprano_Backend
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <soprano/pluginmanager.h>
#line 1307 "sipsopranopart3.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1311 "sipsopranopart3.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 1332 "sipsopranopart3.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 1335 "sipsopranopart3.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 1338 "sipsopranopart3.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 1341 "sipsopranopart3.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 1344 "sipsopranopart3.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 1347 "sipsopranopart3.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 1350 "sipsopranopart3.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 1353 "sipsopranopart3.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 1356 "sipsopranopart3.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 1359 "sipsopranopart3.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 1362 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1365 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1368 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1371 "sipsopranopart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1374 "sipsopranopart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1377 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1380 "sipsopranopart3.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 1411 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1414 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1417 "sipsopranopart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1420 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1423 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1426 "sipsopranopart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1429 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1432 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1435 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1438 "sipsopranopart3.cpp"


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

    {
        const QStringList * a0;
        int a0State = 0;
        bool a1 = 1;
        Soprano::PluginManager *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|b",&sipSelf,sipType_Soprano_PluginManager,&sipCpp,sipType_QStringList,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPluginSearchPath(*a0,a1);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        Soprano::PluginManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<const Soprano::Backend *>(sipCpp->allBackends());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            return sipConvertFromType(const_cast<Soprano::Parser *>(sipRes),sipType_Soprano_Parser,NULL);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE|J1",&sipSelf,sipType_Soprano_PluginManager,&sipCpp,sipType_Soprano_RdfSerialization,&a0,sipType_QString,&a1,&a1State))
        {
            const Soprano::Parser *sipRes;

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

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

            return sipConvertFromType(const_cast<Soprano::Parser *>(sipRes),sipType_Soprano_Parser,NULL);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::PluginManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<const Soprano::Parser *>(sipCpp->allParsers());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            return sipConvertFromType(const_cast<Soprano::Serializer *>(sipRes),sipType_Soprano_Serializer,NULL);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE|J1",&sipSelf,sipType_Soprano_PluginManager,&sipCpp,sipType_Soprano_RdfSerialization,&a0,sipType_QString,&a1,&a1State))
        {
            const Soprano::Serializer *sipRes;

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

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

            return sipConvertFromType(const_cast<Soprano::Serializer *>(sipRes),sipType_Soprano_Serializer,NULL);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::PluginManager *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<const Soprano::Serializer *>(sipCpp->allSerializers());
            Py_END_ALLOW_THREADS

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::PluginManager::instance();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_PluginManager)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Soprano_PluginManager[] = {
    {SIP_MLNAME_CAST(sipName_allBackends), meth_Soprano_PluginManager_allBackends, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allParsers), meth_Soprano_PluginManager_allParsers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allSerializers), meth_Soprano_PluginManager_allSerializers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverBackendByFeatures), meth_Soprano_PluginManager_discoverBackendByFeatures, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverBackendByName), meth_Soprano_PluginManager_discoverBackendByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverParserByName), meth_Soprano_PluginManager_discoverParserByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverParserForSerialization), meth_Soprano_PluginManager_discoverParserForSerialization, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverSerializerByName), meth_Soprano_PluginManager_discoverSerializerByName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_discoverSerializerForSerialization), meth_Soprano_PluginManager_discoverSerializerForSerialization, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_instance), meth_Soprano_PluginManager_instance, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPluginSearchPath), meth_Soprano_PluginManager_setPluginSearchPath, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_PluginManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__PluginManager,
        {0}
    },
    sipNameNr_PluginManager,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_PluginManager,
    0,
    11, methods_Soprano_PluginManager,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_PluginManager,
    release_Soprano_PluginManager,
    cast_Soprano_PluginManager,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::PluginManager::staticMetaObject,
    0,
    0
};

#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 1885 "sipsopranopart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1889 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 1892 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1895 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 1898 "sipsopranopart3.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 1901 "sipsopranopart3.cpp"


class sipSoprano_Parser : public Soprano::Parser
{
public:
    sipSoprano_Parser(const QString&);
    virtual ~sipSoprano_Parser();

    /*
     * 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;
    Soprano::StatementIterator parseFile(const QString&,const QUrl&,Soprano::RdfSerialization,const QString&) const;
    Soprano::StatementIterator parseString(const QString&,const QUrl&,Soprano::RdfSerialization,const QString&) const;
    Soprano::StatementIterator parseStream(QTextStream&,const QUrl&,Soprano::RdfSerialization,const QString&) const;
    bool isAvailable() const;
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

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

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

Soprano::RdfSerializations sipSoprano_Parser::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_Parser,sipName_supportedSerializations);

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

    return sipVH_soprano_6(sipGILState,meth);
}

QStringList sipSoprano_Parser::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::Parser::supportedUserSerializations();

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

Soprano::StatementIterator sipSoprano_Parser::parseFile(const QString& a0,const QUrl& a1,Soprano::RdfSerialization a2,const QString& a3) const
{
    extern Soprano::StatementIterator sipVH_soprano_13(sip_gilstate_t,PyObject *,const QString&,const QUrl&,Soprano::RdfSerialization,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Parser::parseFile(a0,a1,a2,a3);

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

Soprano::StatementIterator sipSoprano_Parser::parseString(const QString& a0,const QUrl& a1,Soprano::RdfSerialization a2,const QString& a3) const
{
    extern Soprano::StatementIterator sipVH_soprano_13(sip_gilstate_t,PyObject *,const QString&,const QUrl&,Soprano::RdfSerialization,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Parser::parseString(a0,a1,a2,a3);

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

Soprano::StatementIterator sipSoprano_Parser::parseStream(QTextStream& a0,const QUrl& a1,Soprano::RdfSerialization a2,const QString& a3) const
{
    extern Soprano::StatementIterator sipVH_soprano_12(sip_gilstate_t,PyObject *,QTextStream&,const QUrl&,Soprano::RdfSerialization,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),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_Parser::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[6]),sipPySelf,NULL,sipName_lastError);

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        sipSoprano_Parser *sipCpp;

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        Soprano::Parser *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Parser, 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_Parser,sipName_supportedSerializations);

    return NULL;
}


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

    {
        Soprano::Parser *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Soprano::Parser::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_Parser,sipName_supportedUserSerializations);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE|J1",&sipSelf,sipType_Soprano_Parser,&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_Parser,sipName_supportsSerialization);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Soprano::RdfSerialization a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;
        Soprano::Parser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J9E|J1",&sipSelf,sipType_Soprano_Parser,&sipCpp,sipType_QString,&a0,&a0State,sipType_QUrl,&a1,sipType_Soprano_RdfSerialization,&a2,sipType_QString,&a3,&a3State))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator((sipSelfWasArg ? sipCpp->Soprano::Parser::parseFile(*a0,*a1,a2,*a3) : sipCpp->parseFile(*a0,*a1,a2,*a3)));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Soprano::RdfSerialization a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;
        Soprano::Parser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J9E|J1",&sipSelf,sipType_Soprano_Parser,&sipCpp,sipType_QString,&a0,&a0State,sipType_QUrl,&a1,sipType_Soprano_RdfSerialization,&a2,sipType_QString,&a3,&a3State))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator((sipSelfWasArg ? sipCpp->Soprano::Parser::parseString(*a0,*a1,a2,*a3) : sipCpp->parseString(*a0,*a1,a2,*a3)));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9E|J1",&sipSelf,sipType_Soprano_Parser,&sipCpp,sipType_QTextStream,&a0,sipType_QUrl,&a1,sipType_Soprano_RdfSerialization,&a2,sipType_QString,&a3,&a3State))
        {
            Soprano::StatementIterator *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Parser, sipName_parseStream);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator(sipCpp->parseStream(*a0,*a1,a2,*a3));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Parser)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_Soprano_Parser(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_Parser(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipSoprano_Parser *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_Parser(*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_Parser[] = {{56, 255, 0}, {29, 255, 1}};


static PyMethodDef methods_Soprano_Parser[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Parser_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseFile), meth_Soprano_Parser_parseFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseStream), meth_Soprano_Parser_parseStream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseString), meth_Soprano_Parser_parseString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Parser_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedSerializations), meth_Soprano_Parser_supportedSerializations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedUserSerializations), meth_Soprano_Parser_supportedUserSerializations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportsSerialization), meth_Soprano_Parser_supportsSerialization, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Parser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Parser,
        {0}
    },
    sipNameNr_Parser,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_Parser,
    0,
    8, methods_Soprano_Parser,
    0, 0,
    0, 0,
    init_Soprano_Parser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Parser,
    release_Soprano_Parser,
    cast_Soprano_Parser,
    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/nrlmodel.sip"
#include <soprano/nrlmodel.h>
#line 2494 "sipsopranopart3.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 2498 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 2501 "sipsopranopart3.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 2504 "sipsopranopart3.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 2507 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 2510 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2513 "sipsopranopart3.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 2534 "sipsopranopart3.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 2537 "sipsopranopart3.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 2540 "sipsopranopart3.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 2543 "sipsopranopart3.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 2546 "sipsopranopart3.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 2549 "sipsopranopart3.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 2552 "sipsopranopart3.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 2555 "sipsopranopart3.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 2558 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2561 "sipsopranopart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2564 "sipsopranopart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2567 "sipsopranopart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2570 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2573 "sipsopranopart3.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 2604 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 2607 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 2610 "sipsopranopart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2613 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 2616 "sipsopranopart3.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2619 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2622 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2625 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2628 "sipsopranopart3.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 2631 "sipsopranopart3.cpp"


class sipSoprano_NRLModel : public Soprano::NRLModel
{
public:
    sipSoprano_NRLModel();
    sipSoprano_NRLModel(Soprano::Model *);
    virtual ~sipSoprano_NRLModel();

    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 *);
    void sipProtectVirt_parentStatementsAdded(bool);
    void sipProtectVirt_parentStatementsRemoved(bool);
    void sipProtectVirt_parentStatementAdded(bool,const Soprano::Statement&);
    void sipProtectVirt_parentStatementRemoved(bool,const Soprano::Statement&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setParentModel(Soprano::Model *);
    Soprano::Model * parentModel() const;
    Soprano::Error::ErrorCode addStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeAllStatements(const Soprano::Statement&);
    Soprano::StatementIterator listStatements(const Soprano::Statement&) const;
    Soprano::NodeIterator listContexts() const;
    Soprano::QueryResultIterator executeQuery(const QString&,Soprano::Query::QueryLanguage,const QString&) const;
    bool containsStatement(const Soprano::Statement&) const;
    bool containsAnyStatement(const Soprano::Statement&) const;
    bool isEmpty() const;
    int statementCount() const;
    Soprano::Error::ErrorCode write(QTextStream&) const;
    Soprano::Node createBlankNode();
    void parentStatementsAdded();
    void parentStatementsRemoved();
    void parentStatementAdded(const Soprano::Statement&);
    void parentStatementRemoved(const Soprano::Statement&);
    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_NRLModel(const sipSoprano_NRLModel &);
    sipSoprano_NRLModel &operator = (const sipSoprano_NRLModel &);

    char sipPyMethods[26];
};

sipSoprano_NRLModel::sipSoprano_NRLModel(): Soprano::NRLModel(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_NRLModel::sipSoprano_NRLModel(Soprano::Model *a0): Soprano::NRLModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_NRLModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_NRLModel);
}

int sipSoprano_NRLModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Soprano::NRLModel::qt_metacall(_c,_id,_a);

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

    return _id;
}

void *sipSoprano_NRLModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_NRLModel,_clname)) ? this : Soprano::NRLModel::qt_metacast(_clname);
}

void sipSoprano_NRLModel::setParentModel(Soprano::Model *a0)
{
    extern void sipVH_soprano_22(sip_gilstate_t,PyObject *,Soprano::Model *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        Soprano::FilterModel::setParentModel(a0);
        return;
    }

    sipVH_soprano_22(sipGILState,meth,a0);
}

Soprano::Model * sipSoprano_NRLModel::parentModel() const
{
    extern Soprano::Model * sipVH_soprano_21(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::parentModel();

    return sipVH_soprano_21(sipGILState,meth);
}

Soprano::Error::ErrorCode sipSoprano_NRLModel::addStatement(const Soprano::Statement& a0)
{
    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_addStatement);

    if (!meth)
        return Soprano::FilterModel::addStatement(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

Soprano::Error::ErrorCode sipSoprano_NRLModel::removeStatement(const Soprano::Statement& a0)
{
    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::removeStatement(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

Soprano::Error::ErrorCode sipSoprano_NRLModel::removeAllStatements(const Soprano::Statement& a0)
{
    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::removeAllStatements(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

Soprano::StatementIterator sipSoprano_NRLModel::listStatements(const Soprano::Statement& a0) const
{
    extern Soprano::StatementIterator sipVH_soprano_19(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::listStatements(a0);

    return sipVH_soprano_19(sipGILState,meth,a0);
}

Soprano::NodeIterator sipSoprano_NRLModel::listContexts() const
{
    extern Soprano::NodeIterator sipVH_soprano_18(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::listContexts();

    return sipVH_soprano_18(sipGILState,meth);
}

Soprano::QueryResultIterator sipSoprano_NRLModel::executeQuery(const QString& a0,Soprano::Query::QueryLanguage a1,const QString& a2) const
{
    extern Soprano::QueryResultIterator sipVH_soprano_17(sip_gilstate_t,PyObject *,const QString&,Soprano::Query::QueryLanguage,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::executeQuery(a0,a1,a2);

    return sipVH_soprano_17(sipGILState,meth,a0,a1,a2);
}

bool sipSoprano_NRLModel::containsStatement(const Soprano::Statement& a0) const
{
    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::containsStatement(a0);

    return sipVH_soprano_1(sipGILState,meth,a0);
}

bool sipSoprano_NRLModel::containsAnyStatement(const Soprano::Statement& a0) const
{
    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::containsAnyStatement(a0);

    return sipVH_soprano_1(sipGILState,meth,a0);
}

bool sipSoprano_NRLModel::isEmpty() 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,NULL,sipName_isEmpty);

    if (!meth)
        return Soprano::FilterModel::isEmpty();

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

int sipSoprano_NRLModel::statementCount() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::statementCount();

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

Soprano::Error::ErrorCode sipSoprano_NRLModel::write(QTextStream& a0) const
{
    extern Soprano::Error::ErrorCode sipVH_soprano_16(sip_gilstate_t,PyObject *,QTextStream&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::FilterModel::write(a0);

    return sipVH_soprano_16(sipGILState,meth,a0);
}

Soprano::Node sipSoprano_NRLModel::createBlankNode()
{
    extern Soprano::Node sipVH_soprano_15(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_createBlankNode);

    if (!meth)
        return Soprano::FilterModel::createBlankNode();

    return sipVH_soprano_15(sipGILState,meth);
}

void sipSoprano_NRLModel::parentStatementsAdded()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_parentStatementsAdded);

    if (!meth)
    {
        Soprano::FilterModel::parentStatementsAdded();
        return;
    }

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

void sipSoprano_NRLModel::parentStatementsRemoved()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_parentStatementsRemoved);

    if (!meth)
    {
        Soprano::FilterModel::parentStatementsRemoved();
        return;
    }

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

void sipSoprano_NRLModel::parentStatementAdded(const Soprano::Statement& a0)
{
    extern void sipVH_soprano_20(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_parentStatementAdded);

    if (!meth)
    {
        Soprano::FilterModel::parentStatementAdded(a0);
        return;
    }

    sipVH_soprano_20(sipGILState,meth,a0);
}

void sipSoprano_NRLModel::parentStatementRemoved(const Soprano::Statement& a0)
{
    extern void sipVH_soprano_20(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_parentStatementRemoved);

    if (!meth)
    {
        Soprano::FilterModel::parentStatementRemoved(a0);
        return;
    }

    sipVH_soprano_20(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],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_NRLModel::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[19],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_NRLModel::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipSoprano_NRLModel::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[23],sipPySelf,NULL,sipName_connectNotify);

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

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

void sipSoprano_NRLModel::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[24],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_NRLModel::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[25]),sipPySelf,NULL,sipName_lastError);

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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

void sipSoprano_NRLModel::sipProtectVirt_parentStatementsAdded(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementsAdded() : parentStatementsAdded());
}

void sipSoprano_NRLModel::sipProtectVirt_parentStatementsRemoved(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementsRemoved() : parentStatementsRemoved());
}

void sipSoprano_NRLModel::sipProtectVirt_parentStatementAdded(bool sipSelfWasArg,const Soprano::Statement& a0)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementAdded(a0) : parentStatementAdded(a0));
}

void sipSoprano_NRLModel::sipProtectVirt_parentStatementRemoved(bool sipSelfWasArg,const Soprano::Statement& a0)
{
    (sipSelfWasArg ? Soprano::FilterModel::parentStatementRemoved(a0) : parentStatementRemoved(a0));
}


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

    {
        sipSoprano_NRLModel *sipCpp;

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_NRLModel,&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 3323 "sipsopranopart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_NRLModel,&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_NRLModel,sipName_timerEvent);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_NRLModel,&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_NRLModel,sipName_childEvent);

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_NRLModel,&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_NRLModel,sipName_customEvent);

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_NRLModel,&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_NRLModel,sipName_connectNotify);

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_NRLModel,&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_NRLModel,sipName_disconnectNotify);

    return NULL;
}


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

    {
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_NRLModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementsAdded(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_NRLModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementsRemoved(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_NRLModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementAdded(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_NRLModel,sipName_parentStatementAdded);

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        sipSoprano_NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_NRLModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementRemoved(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_NRLModel,sipName_parentStatementRemoved);

    return NULL;
}


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

    {
        bool a0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_Soprano_NRLModel,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setIgnoreContext(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_NRLModel,sipName_setIgnoreContext);

    return NULL;
}


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

    {
        Soprano::NRLModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->ignoreContext();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_NRLModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Soprano::Error::ErrorCode sipRes;

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        const QUrl * a0;
        QUrl * a1 = 0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|J8",&sipSelf,sipType_Soprano_NRLModel,&sipCpp,sipType_QUrl,&a0,sipType_QUrl,&a1))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->createGraph(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QUrl * a0;
        Soprano::NRLModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_NRLModel,&sipCpp,sipType_QUrl,&a0))
        {
            Soprano::Error::ErrorCode sipRes;

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_NRLModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_FilterModel)->ctd_cast((Soprano::FilterModel *)(Soprano::NRLModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (!sipCpp)
    {
        Soprano::Model * a0;

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_NRLModel[] = {
    {SIP_MLNAME_CAST(sipName_addNrlStatement), meth_Soprano_NRLModel_addNrlStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_NRLModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_NRLModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_NRLModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createGraph), meth_Soprano_NRLModel_createGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_NRLModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_NRLModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ignoreContext), meth_Soprano_NRLModel_ignoreContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementAdded), meth_Soprano_NRLModel_parentStatementAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementRemoved), meth_Soprano_NRLModel_parentStatementRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsAdded), meth_Soprano_NRLModel_parentStatementsAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsRemoved), meth_Soprano_NRLModel_parentStatementsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_NRLModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeGraph), meth_Soprano_NRLModel_removeGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_NRLModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setIgnoreContext), meth_Soprano_NRLModel_setIgnoreContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_NRLModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_NRLModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__NRLModel,
        {0}
    },
    sipNameNr_NRLModel,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_NRLModel,
    0,
    17, methods_Soprano_NRLModel,
    0, 0,
    0, 0,
    init_Soprano_NRLModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_NRLModel,
    release_Soprano_NRLModel,
    cast_Soprano_NRLModel,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::NRLModel::staticMetaObject,
    0,
    0
};


#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 3876 "sipsopranopart3.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 3879 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3882 "sipsopranopart3.cpp"


class sipSoprano_NodeIteratorBackendBase : public Soprano::NodeIteratorBackendBase
{
public:
    sipSoprano_NodeIteratorBackendBase();
    virtual ~sipSoprano_NodeIteratorBackendBase();

    /*
     * 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::Node current() const;
    void close();
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[4];
};

sipSoprano_NodeIteratorBackendBase::sipSoprano_NodeIteratorBackendBase(): Soprano::NodeIteratorBackendBase(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

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

Soprano::Node sipSoprano_NodeIteratorBackendBase::current() const
{
    extern Soprano::Node sipVH_soprano_14(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_14(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return;

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

Soprano::Error::Error sipSoprano_NodeIteratorBackendBase::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_NodeIteratorBackendBase::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

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

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


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

    {
        sipSoprano_NodeIteratorBackendBase *sipCpp;

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        Soprano::NodeIteratorBackendBase *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_NodeIteratorBackendBase, 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_NodeIteratorBackendBase,sipName_next);

    return NULL;
}


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

    {
        Soprano::NodeIteratorBackendBase *sipCpp;

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::NodeIteratorBackendBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_NodeIteratorBackendBase,&sipCpp))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_NodeIteratorBackendBase, 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_NodeIteratorBackendBase,sipName_close);

    return NULL;
}


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

    if (targetType == sipType_Soprano_NodeIteratorBackendBase)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_NodeIteratorBackendBase[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_NodeIteratorBackendBase_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Soprano_NodeIteratorBackendBase_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_NodeIteratorBackendBase_current, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_NodeIteratorBackendBase_next, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_NodeIteratorBackendBase_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_NodeIteratorBackendBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__NodeIteratorBackendBase,
        {0}
    },
    sipNameNr_NodeIteratorBackendBase,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_NodeIteratorBackendBase,
    0,
    5, methods_Soprano_NodeIteratorBackendBase,
    0, 0,
    0, 0,
    init_Soprano_NodeIteratorBackendBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_NodeIteratorBackendBase,
    release_Soprano_NodeIteratorBackendBase,
    cast_Soprano_NodeIteratorBackendBase,
    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 4323 "sipsopranopart3.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 4326 "sipsopranopart3.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 4329 "sipsopranopart3.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 4332 "sipsopranopart3.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 4335 "sipsopranopart3.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 4338 "sipsopranopart3.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 4341 "sipsopranopart3.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 4344 "sipsopranopart3.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 4347 "sipsopranopart3.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 4350 "sipsopranopart3.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 4353 "sipsopranopart3.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 4356 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4359 "sipsopranopart3.cpp"


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

    {
        Soprano::NodeIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_NodeIteratorBase,&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_NodeIteratorBase,sipName_close);

    return NULL;
}


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

    {
        Soprano::NodeIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_NodeIteratorBase,&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_NodeIteratorBase,sipName_next);

    return NULL;
}


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

    {
        Soprano::NodeIteratorBase *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::NodeIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_NodeIteratorBase,&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_NodeIteratorBase,sipName_isValid);

    return NULL;
}


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

    {
        Soprano::NodeIteratorBase *sipCpp;

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_NodeIteratorBase)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Soprano_NodeIteratorBase[] = {
    {SIP_MLNAME_CAST(sipName_allElements), meth_Soprano_NodeIteratorBase_allElements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Soprano_NodeIteratorBase_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_NodeIteratorBase_current, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_NodeIteratorBase_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_NodeIteratorBase_next, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_NodeIteratorBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__NodeIteratorBase,
        {0}
    },
    sipNameNr_NodeIteratorBase,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_NodeIteratorBase,
    0,
    5, methods_Soprano_NodeIteratorBase,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_NodeIteratorBase,
    release_Soprano_NodeIteratorBase,
    cast_Soprano_NodeIteratorBase,
    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/node.sip"
#include <soprano/node.h>
#line 4597 "sipsopranopart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 4601 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4604 "sipsopranopart3.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 4607 "sipsopranopart3.cpp"


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

    {
        const Soprano::Node * a0;
        Soprano::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Node,&sipCpp,sipType_Soprano_Node,&a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Node,&sipCpp))
        {
            Soprano::Node::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Node_Type);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Node,&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_Node,sipName_isValid);

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLiteral();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResource();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBlank();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(sipCpp->literal());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createEmptyNode());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QUrl * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_QUrl,&a0))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createResourceNode(*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_Node,sipName_createResourceNode);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createBlankNode(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const Soprano::LiteralValue * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_Soprano_LiteralValue,&a0))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createLiteralNode(*a0));
            Py_END_ALLOW_THREADS

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9J1",sipType_Soprano_LiteralValue,&a0,sipType_QString,&a1,&a1State))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createLiteralNode(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QUrl * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Soprano::Node::resourceToN3(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipType_QString,&a0,&a0State))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Soprano::Node::blankToN3(*a0));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const Soprano::LiteralValue * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Soprano::Node::literalToN3(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_Node___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_Node___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Node *sipCpp = reinterpret_cast<Soprano::Node *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LiteralValue * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LiteralValue,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Soprano::Node::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QUrl * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_QUrl,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = !sipCpp->Soprano::Node::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_Node,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::Node::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_Node___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_Node___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Node *sipCpp = reinterpret_cast<Soprano::Node *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::Node * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_Node,&a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QUrl * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_QUrl,&a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::LiteralValue * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LiteralValue,&a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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

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

    if (!sipCpp)
    {
        const QUrl * a0;

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

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

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

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

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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J1",sipType_Soprano_LiteralValue,&a0,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Node(*a0,*a1);
            Py_END_ALLOW_THREADS

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

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

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

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Node[] = {
    {SIP_MLNAME_CAST(sipName_blankToN3), meth_Soprano_Node_blankToN3, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createBlankNode), meth_Soprano_Node_createBlankNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createEmptyNode), meth_Soprano_Node_createEmptyNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createLiteralNode), meth_Soprano_Node_createLiteralNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createResourceNode), meth_Soprano_Node_createResourceNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dataType), meth_Soprano_Node_dataType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifier), meth_Soprano_Node_identifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBlank), meth_Soprano_Node_isBlank, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_Node_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLiteral), meth_Soprano_Node_isLiteral, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResource), meth_Soprano_Node_isResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_Node_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_Soprano_Node_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_literal), meth_Soprano_Node_literal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_literalToN3), meth_Soprano_Node_literalToN3, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_matches), meth_Soprano_Node_matches, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceToN3), meth_Soprano_Node_resourceToN3, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toN3), meth_Soprano_Node_toN3, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Soprano_Node_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Soprano_Node_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uri), meth_Soprano_Node_uri, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Soprano_Node[] = {
    {sipName_BlankNode, Soprano::Node::BlankNode, 51},
    {sipName_EmptyNode, Soprano::Node::EmptyNode, 51},
    {sipName_LiteralNode, Soprano::Node::LiteralNode, 51},
    {sipName_ResourceNode, Soprano::Node::ResourceNode, 51},
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Node = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Node,
        {0}
    },
    sipNameNr_Node,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    slots_Soprano_Node,
    21, methods_Soprano_Node,
    4, enummembers_Soprano_Node,
    0, 0,
    init_Soprano_Node,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Node,
    release_Soprano_Node,
    cast_Soprano_Node,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Node,
    0,
    0,
    0
};

#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 5532 "sipsopranopart3.cpp"

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


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

    {
        Soprano::Error::Locator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->line();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Locator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->column();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Locator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->byte();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Locator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        Soprano::Error::Locator *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Soprano_Error_Locator,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLine(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_Locator,sipName_setLine);

    return NULL;
}


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

    {
        int a0;
        Soprano::Error::Locator *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Soprano_Error_Locator,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setColumn(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_Locator,sipName_setColumn);

    return NULL;
}


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

    {
        int a0;
        Soprano::Error::Locator *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_Soprano_Error_Locator,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setByte(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_Locator,sipName_setByte);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Error_Locator,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFileName(*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_Locator,sipName_setFileName);

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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

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

    if (!sipCpp)
    {
        int a0;
        int a1;
        int a2 = -1;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"ii|iJ1",&a0,&a1,&a2,sipType_QString,&a3,&a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Error::Locator(a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS

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

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

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

    return sipCpp;
}


static PyMethodDef methods_Soprano_Error_Locator[] = {
    {SIP_MLNAME_CAST(sipName_byte), meth_Soprano_Error_Locator_byte, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_column), meth_Soprano_Error_Locator_column, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_Soprano_Error_Locator_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_line), meth_Soprano_Error_Locator_line, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setByte), meth_Soprano_Error_Locator_setByte, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setColumn), meth_Soprano_Error_Locator_setColumn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_Soprano_Error_Locator_setFileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLine), meth_Soprano_Error_Locator_setLine, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Error_Locator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Error__Locator,
        {0}
    },
    sipNameNr_Locator,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {27, 255, 0},
    0,
    0,
    8, methods_Soprano_Error_Locator,
    0, 0,
    0, 0,
    init_Soprano_Error_Locator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Error_Locator,
    release_Soprano_Error_Locator,
    cast_Soprano_Error_Locator,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Error_Locator,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/localsocketclient.sip"
#include <soprano/localsocketclient.h>
#line 5907 "sipsopranopart3.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5911 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5914 "sipsopranopart3.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 5917 "sipsopranopart3.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 5938 "sipsopranopart3.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 5941 "sipsopranopart3.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 5944 "sipsopranopart3.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 5947 "sipsopranopart3.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 5950 "sipsopranopart3.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 5953 "sipsopranopart3.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 5956 "sipsopranopart3.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 5959 "sipsopranopart3.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 5962 "sipsopranopart3.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 5965 "sipsopranopart3.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 5968 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5971 "sipsopranopart3.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5974 "sipsopranopart3.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5977 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5980 "sipsopranopart3.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 6011 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 6014 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 6017 "sipsopranopart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6020 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 6023 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 6026 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6029 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6032 "sipsopranopart3.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6035 "sipsopranopart3.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 6038 "sipsopranopart3.cpp"


class sipSoprano_Client_LocalSocketClient : public Soprano::Client::LocalSocketClient
{
public:
    sipSoprano_Client_LocalSocketClient(QObject *);
    virtual ~sipSoprano_Client_LocalSocketClient();

    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 *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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_Client_LocalSocketClient(const sipSoprano_Client_LocalSocketClient &);
    sipSoprano_Client_LocalSocketClient &operator = (const sipSoprano_Client_LocalSocketClient &);

    char sipPyMethods[8];
};

sipSoprano_Client_LocalSocketClient::sipSoprano_Client_LocalSocketClient(QObject *a0): Soprano::Client::LocalSocketClient(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Client_LocalSocketClient::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Client_LocalSocketClient);
}

int sipSoprano_Client_LocalSocketClient::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Soprano::Client::LocalSocketClient::qt_metacall(_c,_id,_a);

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

    return _id;
}

void *sipSoprano_Client_LocalSocketClient::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Client_LocalSocketClient,_clname)) ? this : Soprano::Client::LocalSocketClient::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],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_Client_LocalSocketClient::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[1],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_Client_LocalSocketClient::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

void sipSoprano_Client_LocalSocketClient::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[5],sipPySelf,NULL,sipName_connectNotify);

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

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

void sipSoprano_Client_LocalSocketClient::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[6],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_Client_LocalSocketClient::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[7]),sipPySelf,NULL,sipName_lastError);

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Client_LocalSocketClient *sipCpp;

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Client_LocalSocketClient,&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 6397 "sipsopranopart3.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Client_LocalSocketClient,&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_LocalSocketClient,sipName_timerEvent);

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Client_LocalSocketClient,&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_LocalSocketClient,sipName_childEvent);

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Client_LocalSocketClient,&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_LocalSocketClient,sipName_customEvent);

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Client_LocalSocketClient,&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_LocalSocketClient,sipName_connectNotify);

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Client_LocalSocketClient,&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_LocalSocketClient,sipName_disconnectNotify);

    return NULL;
}


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

    {
        Soprano::Client::LocalSocketClient *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isConnected();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QList<Soprano::BackendSetting>& a1def = QList<Soprano::BackendSetting>();
        const QList<Soprano::BackendSetting> * a1 = &a1def;
        int a1State = 0;
        Soprano::Client::LocalSocketClient *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_Soprano_Client_LocalSocketClient,&sipCpp,sipType_QString,&a0,&a0State,sipType_QList_0200Soprano_BackendSetting,&a1,&a1State))
        {
            Soprano::Model *sipRes;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Client_LocalSocketClient,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            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_LocalSocketClient,sipName_removeModel);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->connect(*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_LocalSocketClient,sipName_connect);

    return NULL;
}


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

    {
        Soprano::Client::LocalSocketClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_LocalSocketClient)
        return ptr;

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

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Client_LocalSocketClient *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Client::LocalSocketClient *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Client_LocalSocketClient[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Client_LocalSocketClient_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_LocalSocketClient_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connect), meth_Soprano_Client_LocalSocketClient_connect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Client_LocalSocketClient_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_Client_LocalSocketClient_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Client_LocalSocketClient_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnect), meth_Soprano_Client_LocalSocketClient_disconnect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Client_LocalSocketClient_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isConnected), meth_Soprano_Client_LocalSocketClient_isConnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Client_LocalSocketClient_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeModel), meth_Soprano_Client_LocalSocketClient_removeModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_LocalSocketClient_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Client_LocalSocketClient_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Client_LocalSocketClient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__LocalSocketClient,
        {0}
    },
    sipNameNr_LocalSocketClient,
    -1,
    -1,
    {18, 255, 0},
    supers_Soprano_Client_LocalSocketClient,
    0,
    13, methods_Soprano_Client_LocalSocketClient,
    0, 0,
    0, 0,
    init_Soprano_Client_LocalSocketClient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_LocalSocketClient,
    release_Soprano_Client_LocalSocketClient,
    cast_Soprano_Client_LocalSocketClient,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Client::LocalSocketClient::staticMetaObject,
    0,
    0
};

#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 6839 "sipsopranopart3.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6843 "sipsopranopart3.cpp"
#line 500 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6846 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6849 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 6852 "sipsopranopart3.cpp"
#line 190 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 6855 "sipsopranopart3.cpp"
#line 321 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 6858 "sipsopranopart3.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6861 "sipsopranopart3.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 6864 "sipsopranopart3.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 6867 "sipsopranopart3.cpp"


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LiteralValue,&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_LiteralValue,sipName_isValid);

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isPlain();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt64();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt64();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDouble();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isString();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDate();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDateTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isByteArray();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LiteralValue,&sipCpp))
        {
            qlonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt64();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LiteralValue,&sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUnsignedInt();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LiteralValue,&sipCpp))
        {
            qulonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUnsignedInt64();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LiteralValue,&sipCpp))
        {
            double sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toDouble();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->toByteArray());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag(sipCpp->language());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_LiteralValue,&sipCpp))
        {
            QVariant::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QVariant_Type);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        QVariant::Type a1;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1E",sipType_QString,&a0,&a0State,sipType_QVariant_Type,&a1))
        {
            Soprano::LiteralValue *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(Soprano::LiteralValue::fromString(*a0,a1));
            Py_END_ALLOW_THREADS

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

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1J9",sipType_QString,&a0,&a0State,sipType_QUrl,&a1))
        {
            Soprano::LiteralValue *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(Soprano::LiteralValue::fromString(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J1|J9",sipType_QString,&a0,&a0State,sipType_Soprano_LanguageTag,&a1))
        {
            Soprano::LiteralValue *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(Soprano::LiteralValue::createPlainLiteral(*a0,*a1));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

    {
        const QUrl * a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"J9",sipType_QUrl,&a0))
        {
            QVariant::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::LiteralValue::typeFromDataTypeUri(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QVariant_Type);
        }
    }

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

    return NULL;
}


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

    {
        QVariant::Type a0;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"E",sipType_QVariant_Type,&a0))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::LiteralValue::dataTypeUriFromType(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_LiteralValue___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LiteralValue___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LiteralValue *sipCpp = reinterpret_cast<Soprano::LiteralValue *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LiteralValue));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LiteralValue * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LiteralValue,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::LiteralValue::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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


extern "C" {static PyObject *slot_Soprano_LiteralValue___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_LiteralValue___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LiteralValue *sipCpp = reinterpret_cast<Soprano::LiteralValue *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LiteralValue));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::LiteralValue * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_LiteralValue,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::LiteralValue::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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

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

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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QVariant,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LiteralValue(*a0);
            Py_END_ALLOW_THREADS

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

    if (!sipCpp)
    {
        qlonglong a0;

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

    if (!sipCpp)
    {
        double a0;

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

    if (!sipCpp)
    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseArgs(sipArgsParsed,sipArgs,"AA",&a0Keep,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LiteralValue(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);
        }
    }

    if (!sipCpp)
    {
        const QLatin1String * a0;

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

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

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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QDate,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LiteralValue(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDate *>(a0),sipType_QDate,a0State);
        }
    }

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QTime,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LiteralValue(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QTime *>(a0),sipType_QTime,a0State);
        }
    }

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QDateTime,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LiteralValue(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QDateTime *>(a0),sipType_QDateTime,a0State);
        }
    }

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1",sipType_QByteArray,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LiteralValue(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
        }
    }

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_LiteralValue[] = {
    {SIP_MLNAME_CAST(sipName_createPlainLiteral), meth_Soprano_LiteralValue_createPlainLiteral, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dataTypeUri), meth_Soprano_LiteralValue_dataTypeUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dataTypeUriFromType), meth_Soprano_LiteralValue_dataTypeUriFromType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromString), meth_Soprano_LiteralValue_fromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBool), meth_Soprano_LiteralValue_isBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isByteArray), meth_Soprano_LiteralValue_isByteArray, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDate), meth_Soprano_LiteralValue_isDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDateTime), meth_Soprano_LiteralValue_isDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDouble), meth_Soprano_LiteralValue_isDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt), meth_Soprano_LiteralValue_isInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt64), meth_Soprano_LiteralValue_isInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isPlain), meth_Soprano_LiteralValue_isPlain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isString), meth_Soprano_LiteralValue_isString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTime), meth_Soprano_LiteralValue_isTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt), meth_Soprano_LiteralValue_isUnsignedInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt64), meth_Soprano_LiteralValue_isUnsignedInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_LiteralValue_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_Soprano_LiteralValue_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toBool), meth_Soprano_LiteralValue_toBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toByteArray), meth_Soprano_LiteralValue_toByteArray, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDate), meth_Soprano_LiteralValue_toDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDateTime), meth_Soprano_LiteralValue_toDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDouble), meth_Soprano_LiteralValue_toDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt), meth_Soprano_LiteralValue_toInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt64), meth_Soprano_LiteralValue_toInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Soprano_LiteralValue_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTime), meth_Soprano_LiteralValue_toTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedInt), meth_Soprano_LiteralValue_toUnsignedInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedInt64), meth_Soprano_LiteralValue_toUnsignedInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Soprano_LiteralValue_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_typeFromDataTypeUri), meth_Soprano_LiteralValue_typeFromDataTypeUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variant), meth_Soprano_LiteralValue_variant, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_LiteralValue = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__LiteralValue,
        {0}
    },
    sipNameNr_LiteralValue,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    slots_Soprano_LiteralValue,
    32, methods_Soprano_LiteralValue,
    0, 0,
    0, 0,
    init_Soprano_LiteralValue,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_LiteralValue,
    release_Soprano_LiteralValue,
    cast_Soprano_LiteralValue,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_LiteralValue,
    0,
    0,
    0
};
