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

#include "sipAPIsoprano.h"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/inferenceruleparser.sip"
#include <soprano/inferenceruleparser.h>
#line 12 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 16 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 22 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Inference_RuleParser, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->parseFile(*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(sipParseErr, sipName_RuleParser, sipName_parseFile, NULL);

    return NULL;
}


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

    {
        Soprano::Inference::RuleParser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_RuleParser, &sipCpp))
        {
            Soprano::Inference::RuleSet *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::RuleSet(sipCpp->rules());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Inference_RuleParser, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Soprano::Inference::Rule *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::Rule(sipCpp->parseRule(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Soprano::Inference::RuleParser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Soprano_Inference_RuleParser, &sipCpp, sipType_QString,&a0, &a0State, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addPrefix(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Inference::RuleParser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_RuleParser, &sipCpp))
        {
            QHash<QString,QUrl> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QString,QUrl>(sipCpp->prefixes());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Inference::RuleParser *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Inference::RuleParser *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Soprano_Inference_RuleParser[] = {
    {SIP_MLNAME_CAST(sipName_addPrefix), meth_Soprano_Inference_RuleParser_addPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_Soprano_Inference_RuleParser_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseFile), meth_Soprano_Inference_RuleParser_parseFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parseRule), meth_Soprano_Inference_RuleParser_parseRule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prefixes), meth_Soprano_Inference_RuleParser_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rules), meth_Soprano_Inference_RuleParser_rules, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Inference_RuleParser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__RuleParser,
        {0}
    },
    {
        sipNameNr_RuleParser,
        {36, 255, 0},
        6, methods_Soprano_Inference_RuleParser,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Soprano_Inference_RuleParser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_RuleParser,
    0,
    0,
    0,
    release_Soprano_Inference_RuleParser,
    cast_Soprano_Inference_RuleParser,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 316 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 320 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 323 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 326 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 329 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 332 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 335 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"


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

    {
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_Rule, &sipCpp))
        {
            QList<Soprano::Inference::StatementPattern> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Inference::StatementPattern>(sipCpp->preconditions());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Soprano::Inference::StatementPattern * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_Rule, &sipCpp, sipType_Soprano_Inference_StatementPattern, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addPrecondition(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_Rule, &sipCpp))
        {
            Soprano::Inference::StatementPattern *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::StatementPattern(sipCpp->effect());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Soprano::Inference::StatementPattern * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_Rule, &sipCpp, sipType_Soprano_Inference_StatementPattern, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEffect(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_Rule, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_Rule, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->bindToStatement(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Inference::Rule *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        bool a0 = 0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_Soprano_Inference_Rule, &sipCpp, &a0))
        {
            QString *sipRes;

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

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

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

    return NULL;
}


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

    {
        const Soprano::BindingSet * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_Rule, &sipCpp, sipType_Soprano_BindingSet, &a0))
        {
            Soprano::Statement *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Statement(sipCpp->bindEffect(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const Soprano::BindingSet * a0;
        Soprano::Inference::Rule *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_Rule, &sipCpp, sipType_Soprano_BindingSet, &a0))
        {
            QList<Soprano::Statement> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Statement>(sipCpp->bindPreconditions(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Inference::Rule *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Inference::Rule *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_Inference_Rule(SIP_SSIZE_T);}
static void *array_Soprano_Inference_Rule(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::Inference::Rule[sipNrElem];
}


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Soprano::Inference::Rule * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Soprano_Inference_Rule, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::Rule(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Soprano_Inference_Rule[] = {
    {SIP_MLNAME_CAST(sipName_addPrecondition), meth_Soprano_Inference_Rule_addPrecondition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindEffect), meth_Soprano_Inference_Rule_bindEffect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindPreconditions), meth_Soprano_Inference_Rule_bindPreconditions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindToStatement), meth_Soprano_Inference_Rule_bindToStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_boundToStatement), meth_Soprano_Inference_Rule_boundToStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createSparqlQuery), meth_Soprano_Inference_Rule_createSparqlQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_effect), meth_Soprano_Inference_Rule_effect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_Inference_Rule_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Soprano_Inference_Rule_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preconditions), meth_Soprano_Inference_Rule_preconditions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEffect), meth_Soprano_Inference_Rule_setEffect, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Inference_Rule = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__Rule,
        {0}
    },
    {
        sipNameNr_Rule,
        {36, 255, 0},
        11, methods_Soprano_Inference_Rule,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Soprano_Inference_Rule,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_Rule,
    assign_Soprano_Inference_Rule,
    array_Soprano_Inference_Rule,
    copy_Soprano_Inference_Rule,
    release_Soprano_Inference_Rule,
    cast_Soprano_Inference_Rule,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/inferencemodel.sip"
#include <soprano/inferencemodel.h>
#line 793 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 797 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 800 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 803 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 806 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 809 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 812 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 815 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 818 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 821 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 824 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 827 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 830 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 833 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 836 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 839 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 842 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 845 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 848 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 851 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 854 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 857 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 860 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 863 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 866 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"


class sipSoprano_Inference_InferenceModel : public Soprano::Inference::InferenceModel
{
public:
    sipSoprano_Inference_InferenceModel(Soprano::Model *);
    virtual ~sipSoprano_Inference_InferenceModel();

    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;
    QObject * sipProtect_sender() 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_Inference_InferenceModel(const sipSoprano_Inference_InferenceModel &);
    sipSoprano_Inference_InferenceModel &operator = (const sipSoprano_Inference_InferenceModel &);

    char sipPyMethods[26];
};

sipSoprano_Inference_InferenceModel::sipSoprano_Inference_InferenceModel(Soprano::Model *a0): Soprano::Inference::InferenceModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Inference_InferenceModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Inference_InferenceModel);
}

int sipSoprano_Inference_InferenceModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Soprano::Inference::InferenceModel::qt_metacall(_c,_id,_a);

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

    return _id;
}

void *sipSoprano_Inference_InferenceModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Inference_InferenceModel,_clname)) ? this : Soprano::Inference::InferenceModel::qt_metacast(_clname);
}

void sipSoprano_Inference_InferenceModel::setParentModel(Soprano::Model *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_soprano_19(sip_gilstate_t,PyObject *,Soprano::Model *);

    sipVH_soprano_19(sipGILState,sipMeth,a0);
}

Soprano::Model * sipSoprano_Inference_InferenceModel::parentModel() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::Model * sipVH_soprano_18(sip_gilstate_t,PyObject *);

    return sipVH_soprano_18(sipGILState,sipMeth);
}

Soprano::Error::ErrorCode sipSoprano_Inference_InferenceModel::addStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Inference::InferenceModel::addStatement(a0);

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::Error::ErrorCode sipSoprano_Inference_InferenceModel::removeStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Inference::InferenceModel::removeStatement(a0);

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::Error::ErrorCode sipSoprano_Inference_InferenceModel::removeAllStatements(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Inference::InferenceModel::removeAllStatements(a0);

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::StatementIterator sipSoprano_Inference_InferenceModel::listStatements(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::StatementIterator sipVH_soprano_16(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_16(sipGILState,sipMeth,a0);
}

Soprano::NodeIterator sipSoprano_Inference_InferenceModel::listContexts() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::NodeIterator sipVH_soprano_15(sip_gilstate_t,PyObject *);

    return sipVH_soprano_15(sipGILState,sipMeth);
}

Soprano::QueryResultIterator sipSoprano_Inference_InferenceModel::executeQuery(const QString& a0,Soprano::Query::QueryLanguage a1,const QString& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::QueryResultIterator sipVH_soprano_12(sip_gilstate_t,PyObject *,const QString&,Soprano::Query::QueryLanguage,const QString&);

    return sipVH_soprano_12(sipGILState,sipMeth,a0,a1,a2);
}

bool sipSoprano_Inference_InferenceModel::containsStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

bool sipSoprano_Inference_InferenceModel::containsAnyStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

bool sipSoprano_Inference_InferenceModel::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_isEmpty);

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

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

int sipSoprano_Inference_InferenceModel::statementCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_soprano_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

Soprano::Error::ErrorCode sipSoprano_Inference_InferenceModel::write(QTextStream& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::Error::ErrorCode sipVH_soprano_14(sip_gilstate_t,PyObject *,QTextStream&);

    return sipVH_soprano_14(sipGILState,sipMeth,a0);
}

Soprano::Node sipSoprano_Inference_InferenceModel::createBlankNode()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::Node sipVH_soprano_13(sip_gilstate_t,PyObject *);

    return sipVH_soprano_13(sipGILState,sipMeth);
}

void sipSoprano_Inference_InferenceModel::parentStatementsAdded()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_soprano_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipSoprano_Inference_InferenceModel::parentStatementsRemoved()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_soprano_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipSoprano_Inference_InferenceModel::parentStatementAdded(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_soprano_17(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sipVH_soprano_17(sipGILState,sipMeth,a0);
}

void sipSoprano_Inference_InferenceModel::parentStatementRemoved(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern void sipVH_soprano_17(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sipVH_soprano_17(sipGILState,sipMeth,a0);
}

bool sipSoprano_Inference_InferenceModel::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_event);

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

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_soprano_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipSoprano_Inference_InferenceModel::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_eventFilter);

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipSoprano_Inference_InferenceModel::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_soprano_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Inference_InferenceModel::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_soprano_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Inference_InferenceModel::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_soprano_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Inference_InferenceModel::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_connectNotify);

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_soprano_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Inference_InferenceModel::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_disconnectNotify);

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_soprano_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

Soprano::Error::Error sipSoprano_Inference_InferenceModel::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::Error::Error sipVH_soprano_20(sip_gilstate_t,PyObject *);

    return sipVH_soprano_20(sipGILState,sipMeth);
}

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

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

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

QObject * sipSoprano_Inference_InferenceModel::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_clearError, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_setError, NULL);

    return NULL;
}


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

    {
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_InferenceModel, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 1558 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Inference_InferenceModel, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 1600 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementsAdded(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementsAdded(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_parentStatementsAdded, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementsRemoved(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementsRemoved(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipSoprano_Inference_InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_parentStatementsRemoved, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementAdded(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementAdded(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_parentStatementAdded, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementRemoved(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_parentStatementRemoved(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_InferenceModel, &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(sipParseErr, sipName_InferenceModel, sipName_parentStatementRemoved, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_addStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_addStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Inference::InferenceModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Inference::InferenceModel::addStatement(*a0) : sipCpp->addStatement(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_removeStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_removeStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Inference::InferenceModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Inference::InferenceModel::removeStatement(*a0) : sipCpp->removeStatement(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Inference_InferenceModel_removeAllStatements(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Inference_InferenceModel_removeAllStatements(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Inference::InferenceModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Inference::InferenceModel::removeAllStatements(*a0) : sipCpp->removeAllStatements(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Inference::Rule * a0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_InferenceModel, &sipCpp, sipType_Soprano_Inference_Rule, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addRule(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Soprano::Inference::Rule> * a0;
        int a0State = 0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Inference_InferenceModel, &sipCpp, sipType_QList_0100Soprano_Inference_Rule,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setRules(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::Inference::Rule> *>(a0),sipType_QList_0100Soprano_Inference_Rule,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Inference::InferenceModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Inference::InferenceModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Soprano_Inference_InferenceModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCompressedSourceStatements(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Soprano::Inference::InferenceModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Soprano_Inference_InferenceModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOptimizedQueriesEnabled(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Inference_InferenceModel)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Inference_InferenceModel *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Inference::InferenceModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Inference_InferenceModel(sipSimpleWrapper *);}
static void dealloc_Soprano_Inference_InferenceModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Inference_InferenceModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Inference_InferenceModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        Soprano::Model * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Soprano_Inference_InferenceModel[] = {
    {SIP_MLNAME_CAST(sipName_addRule), meth_Soprano_Inference_InferenceModel_addRule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_Inference_InferenceModel_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Inference_InferenceModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Inference_InferenceModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearInference), meth_Soprano_Inference_InferenceModel_clearInference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Inference_InferenceModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Inference_InferenceModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Inference_InferenceModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementAdded), meth_Soprano_Inference_InferenceModel_parentStatementAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementRemoved), meth_Soprano_Inference_InferenceModel_parentStatementRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsAdded), meth_Soprano_Inference_InferenceModel_parentStatementsAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsRemoved), meth_Soprano_Inference_InferenceModel_parentStatementsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_performInference), meth_Soprano_Inference_InferenceModel_performInference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Inference_InferenceModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_Inference_InferenceModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_Inference_InferenceModel_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Soprano_Inference_InferenceModel_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCompressedSourceStatements), meth_Soprano_Inference_InferenceModel_setCompressedSourceStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Inference_InferenceModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOptimizedQueriesEnabled), meth_Soprano_Inference_InferenceModel_setOptimizedQueriesEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRules), meth_Soprano_Inference_InferenceModel_setRules, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Inference_InferenceModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Inference_InferenceModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__InferenceModel,
        {0}
    },
    {
        sipNameNr_InferenceModel,
        {36, 255, 0},
        22, methods_Soprano_Inference_InferenceModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Inference_InferenceModel,
    0,
    init_Soprano_Inference_InferenceModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_InferenceModel,
    0,
    0,
    0,
    release_Soprano_Inference_InferenceModel,
    cast_Soprano_Inference_InferenceModel,
    0,
    0,
    0
},
    &Soprano::Inference::InferenceModel::staticMetaObject,
    0,
    0
};



static sipEnumMemberDef enummembers_Soprano_Inference[] = {
    {sipName_NRL, Soprano::Inference::NRL, 42},
    {sipName_RDFS, Soprano::Inference::RDFS, 42},
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Inference = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Inference,
        {0}
    },
    {
        sipNameNr_Inference,
        {11, 255, 0},
        0, 0,
        2, enummembers_Soprano_Inference,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/graph.sip"
#include <soprano/graph.h>
#line 2320 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2324 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2327 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2330 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 2333 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 2336 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addStatement(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addStatement(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Soprano::Statement> * a0;
        int a0State = 0;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_QList_0100Soprano_Statement,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addStatements(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::Statement> *>(a0),sipType_QList_0100Soprano_Statement,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeStatement(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeStatement(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement& a0def = Soprano::Statement();
        const Soprano::Statement * a0 = &a0def;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeAllStatements(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeAllStatements(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Soprano::Statement> * a0;
        int a0State = 0;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_QList_0100Soprano_Statement,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeStatements(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::Statement> *>(a0),sipType_QList_0100Soprano_Statement,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeContext(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement& a0def = Soprano::Statement();
        const Soprano::Statement * a0 = &a0def;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator(sipCpp->listStatements(*a0));
            Py_END_ALLOW_THREADS

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

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Soprano::StatementIterator *sipRes;

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Node, &a0))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator(sipCpp->listStatementsInContext(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Graph *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::NodeIterator(sipCpp->listContexts());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Graph, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Graph, &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(sipParseErr, sipName_Graph, sipName_isEmpty, NULL);

    return NULL;
}


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

    {
        Soprano::Graph *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->statementCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Graph *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Graph, &sipCpp))
        {
            QList<Soprano::Statement> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Statement>(sipCpp->toList());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_Graph___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Graph___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Graph *sipCpp = reinterpret_cast<Soprano::Graph *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Graph));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Graph * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_Graph___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Graph___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Graph *sipCpp = reinterpret_cast<Soprano::Graph *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Graph));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Graph * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    {
        Soprano::Graph * a0;
        const Soprano::Graph * a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_Soprano_Graph, &a0, sipType_Soprano_Graph, &a1))
        {
            Soprano::Graph *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

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

    {
        Soprano::Graph * a0;
        const Soprano::Statement * a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_Soprano_Graph, &a0, sipType_Soprano_Statement, &a1))
        {
            Soprano::Graph *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    Soprano::Graph *sipCpp = reinterpret_cast<Soprano::Graph *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Graph));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Graph * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Soprano_Graph, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Graph::operator-=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const Soprano::Statement * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Soprano_Statement, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Graph::operator-=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    {
        Soprano::Graph * a0;
        const Soprano::Graph * a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_Soprano_Graph, &a0, sipType_Soprano_Graph, &a1))
        {
            Soprano::Graph *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Graph((*a0 - *a1));
            Py_END_ALLOW_THREADS

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

    {
        Soprano::Graph * a0;
        const Soprano::Statement * a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_Soprano_Graph, &a0, sipType_Soprano_Statement, &a1))
        {
            Soprano::Graph *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Graph((*a0 - *a1));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    Soprano::Graph *sipCpp = reinterpret_cast<Soprano::Graph *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Graph));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Graph * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Soprano_Graph, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Graph::operator+=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const Soprano::Statement * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Soprano_Statement, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Graph::operator+=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    {
        Soprano::Graph * a0;
        const Soprano::Graph * a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_Soprano_Graph, &a0, sipType_Soprano_Graph, &a1))
        {
            Soprano::Graph *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Graph((*a0 + *a1));
            Py_END_ALLOW_THREADS

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

    {
        Soprano::Graph * a0;
        const Soprano::Statement * a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_Soprano_Graph, &a0, sipType_Soprano_Statement, &a1))
        {
            Soprano::Graph *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Graph((*a0 + *a1));
            Py_END_ALLOW_THREADS

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Soprano::Graph * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Soprano_Graph, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Graph(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_Graph[] = {
    {(void *)slot_Soprano_Graph___ne__, ne_slot},
    {(void *)slot_Soprano_Graph___eq__, eq_slot},
    {(void *)slot_Soprano_Graph___lshift__, lshift_slot},
    {(void *)slot_Soprano_Graph___isub__, isub_slot},
    {(void *)slot_Soprano_Graph___sub__, sub_slot},
    {(void *)slot_Soprano_Graph___iadd__, iadd_slot},
    {(void *)slot_Soprano_Graph___add__, add_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Soprano_Graph[] = {
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_Graph_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addStatements), meth_Soprano_Graph_addStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatement), meth_Soprano_Graph_containsAnyStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsContext), meth_Soprano_Graph_containsContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatement), meth_Soprano_Graph_containsStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_Graph_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContexts), meth_Soprano_Graph_listContexts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatements), meth_Soprano_Graph_listStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatementsInContext), meth_Soprano_Graph_listStatementsInContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_Graph_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeContext), meth_Soprano_Graph_removeContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_Graph_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatements), meth_Soprano_Graph_removeStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementCount), meth_Soprano_Graph_statementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toList), meth_Soprano_Graph_toList, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Graph = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Graph,
        {0}
    },
    {
        sipNameNr_Graph,
        {11, 255, 0},
        15, methods_Soprano_Graph,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Soprano_Graph,
    init_Soprano_Graph,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Graph,
    assign_Soprano_Graph,
    array_Soprano_Graph,
    copy_Soprano_Graph,
    release_Soprano_Graph,
    cast_Soprano_Graph,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 76 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 3376 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/locator.sip"
#include <soprano/locator.h>
#line 3380 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3383 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 3386 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"


class sipSoprano_Error_ParserError : public Soprano::Error::ParserError
{
public:
    sipSoprano_Error_ParserError();
    sipSoprano_Error_ParserError(const Soprano::Error::Locator&,const QString&,int);
    sipSoprano_Error_ParserError(const Soprano::Error::Error&);
    sipSoprano_Error_ParserError(const Soprano::Error::ParserError&);
    ~sipSoprano_Error_ParserError();

public:
    sipSimpleWrapper *sipPySelf;

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

sipSoprano_Error_ParserError::sipSoprano_Error_ParserError(): Soprano::Error::ParserError(), sipPySelf(0)
{
}

sipSoprano_Error_ParserError::sipSoprano_Error_ParserError(const Soprano::Error::Locator& a0,const QString& a1,int a2): Soprano::Error::ParserError(a0,a1,a2), sipPySelf(0)
{
}

sipSoprano_Error_ParserError::sipSoprano_Error_ParserError(const Soprano::Error::Error& a0): Soprano::Error::ParserError(a0), sipPySelf(0)
{
}

sipSoprano_Error_ParserError::sipSoprano_Error_ParserError(const Soprano::Error::ParserError& a0): Soprano::Error::ParserError(a0), sipPySelf(0)
{
}

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


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

    {
        Soprano::Error::ParserError *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Error_ParserError)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Error_ParserError *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Error::ParserError *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_Error_ParserError(SIP_SSIZE_T);}
static void *array_Soprano_Error_ParserError(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::Error::ParserError[sipNrElem];
}


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


extern "C" {static void dealloc_Soprano_Error_ParserError(sipSimpleWrapper *);}
static void dealloc_Soprano_Error_ParserError(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Error_ParserError *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Error_ParserError(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|J1i", sipType_Soprano_Error_Locator, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Error_ParserError(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Error::ParserError * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Error_ParserError = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Error__ParserError,
        {0}
    },
    {
        sipNameNr_ParserError,
        {28, 255, 0},
        1, methods_Soprano_Error_ParserError,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Error_ParserError,
    0,
    init_Soprano_Error_ParserError,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Error_ParserError,
    assign_Soprano_Error_ParserError,
    array_Soprano_Error_ParserError,
    copy_Soprano_Error_ParserError,
    release_Soprano_Error_ParserError,
    cast_Soprano_Error_ParserError,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 3653 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

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


class sipSoprano_Error_Error : public Soprano::Error::Error
{
public:
    sipSoprano_Error_Error();
    sipSoprano_Error_Error(const QString&,int);
    sipSoprano_Error_Error(const Soprano::Error::Error&);
    ~sipSoprano_Error_Error();

public:
    sipSimpleWrapper *sipPySelf;

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

sipSoprano_Error_Error::sipSoprano_Error_Error(): Soprano::Error::Error(), sipPySelf(0)
{
}

sipSoprano_Error_Error::sipSoprano_Error_Error(const QString& a0,int a1): Soprano::Error::Error(a0,a1), sipPySelf(0)
{
}

sipSoprano_Error_Error::sipSoprano_Error_Error(const Soprano::Error::Error& a0): Soprano::Error::Error(a0), sipPySelf(0)
{
}

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


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

    {
        Soprano::Error::Error *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Error::Error *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->code();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Error *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isParserError();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Error *sipCpp;

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

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

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

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

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Error_Error *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Error::Error *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


extern "C" {static void dealloc_Soprano_Error_Error(sipSimpleWrapper *);}
static void dealloc_Soprano_Error_Error(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Error_Error *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Error_Error(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Error_Error = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Error__Error,
        {0}
    },
    {
        sipNameNr_Error,
        {28, 255, 0},
        4, methods_Soprano_Error_Error,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Soprano_Error_Error,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Error_Error,
    assign_Soprano_Error_Error,
    array_Soprano_Error_Error,
    copy_Soprano_Error_Error,
    release_Soprano_Error_Error,
    cast_Soprano_Error_Error,
    0,
    0,
    0
},
    0,
    0,
    0
};


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


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

    {
        int a0;

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::ErrorCode a0;

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

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

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

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

    return NULL;
}


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

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


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

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/dummymodel.sip"
#include <soprano/dummymodel.h>
#line 4106 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 4110 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 4113 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 4116 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 4119 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4122 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 4125 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 4128 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4131 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4134 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4137 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4140 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4143 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4146 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4149 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4152 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4155 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4158 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4161 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4164 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4167 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 4170 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"


class sipSoprano_Util_DummyModel : public Soprano::Util::DummyModel
{
public:
    sipSoprano_Util_DummyModel();
    virtual ~sipSoprano_Util_DummyModel();

    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;
    QObject * sipProtect_sender() 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:
    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 containsAnyStatement(const Soprano::Statement&) const;
    bool containsStatement(const Soprano::Statement&) const;
    bool isEmpty() const;
    int statementCount() const;
    Soprano::Error::ErrorCode write(QTextStream&) const;
    Soprano::Node createBlankNode();
    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_Util_DummyModel(const sipSoprano_Util_DummyModel &);
    sipSoprano_Util_DummyModel &operator = (const sipSoprano_Util_DummyModel &);

    char sipPyMethods[20];
};

sipSoprano_Util_DummyModel::sipSoprano_Util_DummyModel(): Soprano::Util::DummyModel(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Util_DummyModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Util_DummyModel);
}

int sipSoprano_Util_DummyModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Soprano::Util::DummyModel::qt_metacall(_c,_id,_a);

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

    return _id;
}

void *sipSoprano_Util_DummyModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Util_DummyModel,_clname)) ? this : Soprano::Util::DummyModel::qt_metacast(_clname);
}

Soprano::Error::ErrorCode sipSoprano_Util_DummyModel::addStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_addStatement);

    if (!sipMeth)
        return Soprano::Util::DummyModel::addStatement(a0);

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::Error::ErrorCode sipSoprano_Util_DummyModel::removeStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_removeStatement);

    if (!sipMeth)
        return Soprano::Util::DummyModel::removeStatement(a0);

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::Error::ErrorCode sipSoprano_Util_DummyModel::removeAllStatements(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_removeAllStatements);

    if (!sipMeth)
        return Soprano::Util::DummyModel::removeAllStatements(a0);

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::StatementIterator sipSoprano_Util_DummyModel::listStatements(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::DummyModel::listStatements(a0);

    extern Soprano::StatementIterator sipVH_soprano_16(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_16(sipGILState,sipMeth,a0);
}

Soprano::NodeIterator sipSoprano_Util_DummyModel::listContexts() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::DummyModel::listContexts();

    extern Soprano::NodeIterator sipVH_soprano_15(sip_gilstate_t,PyObject *);

    return sipVH_soprano_15(sipGILState,sipMeth);
}

Soprano::QueryResultIterator sipSoprano_Util_DummyModel::executeQuery(const QString& a0,Soprano::Query::QueryLanguage a1,const QString& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::DummyModel::executeQuery(a0,a1,a2);

    extern Soprano::QueryResultIterator sipVH_soprano_12(sip_gilstate_t,PyObject *,const QString&,Soprano::Query::QueryLanguage,const QString&);

    return sipVH_soprano_12(sipGILState,sipMeth,a0,a1,a2);
}

bool sipSoprano_Util_DummyModel::containsAnyStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::DummyModel::containsAnyStatement(a0);

    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

bool sipSoprano_Util_DummyModel::containsStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::DummyModel::containsStatement(a0);

    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

bool sipSoprano_Util_DummyModel::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::DummyModel::isEmpty();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

int sipSoprano_Util_DummyModel::statementCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::DummyModel::statementCount();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_soprano_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

Soprano::Error::ErrorCode sipSoprano_Util_DummyModel::write(QTextStream& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::DummyModel::write(a0);

    extern Soprano::Error::ErrorCode sipVH_soprano_14(sip_gilstate_t,PyObject *,QTextStream&);

    return sipVH_soprano_14(sipGILState,sipMeth,a0);
}

Soprano::Node sipSoprano_Util_DummyModel::createBlankNode()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_createBlankNode);

    if (!sipMeth)
        return Soprano::Util::DummyModel::createBlankNode();

    extern Soprano::Node sipVH_soprano_13(sip_gilstate_t,PyObject *);

    return sipVH_soprano_13(sipGILState,sipMeth);
}

bool sipSoprano_Util_DummyModel::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_event);

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

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_soprano_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipSoprano_Util_DummyModel::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_eventFilter);

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipSoprano_Util_DummyModel::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_timerEvent);

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

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_soprano_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Util_DummyModel::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_childEvent);

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_soprano_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Util_DummyModel::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_customEvent);

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_soprano_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Util_DummyModel::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_connectNotify);

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_soprano_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Util_DummyModel::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_disconnectNotify);

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_soprano_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

Soprano::Error::Error sipSoprano_Util_DummyModel::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::Error::Error sipVH_soprano_20(sip_gilstate_t,PyObject *);

    return sipVH_soprano_20(sipGILState,sipMeth);
}

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

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

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

QObject * sipSoprano_Util_DummyModel::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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


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

    {
        sipSoprano_Util_DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Util_DummyModel, &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(sipParseErr, sipName_DummyModel, sipName_clearError, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Util_DummyModel, &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_Util_DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Util_DummyModel, &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(sipParseErr, sipName_DummyModel, sipName_setError, NULL);

    return NULL;
}


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

    {
        sipSoprano_Util_DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 4727 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 4769 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipSoprano_Util_DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Util_DummyModel, &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(sipParseErr, sipName_DummyModel, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipSoprano_Util_DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Util_DummyModel, &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(sipParseErr, sipName_DummyModel, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipSoprano_Util_DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Util_DummyModel, &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(sipParseErr, sipName_DummyModel, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Util_DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Util_DummyModel, &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(sipParseErr, sipName_DummyModel, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Util_DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Util_DummyModel, &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(sipParseErr, sipName_DummyModel, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_addStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_addStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Util::DummyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::addStatement(*a0) : sipCpp->addStatement(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Soprano::Error::ErrorCode sipRes;

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_removeStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_removeStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Util::DummyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::removeStatement(*a0) : sipCpp->removeStatement(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Soprano::Error::ErrorCode sipRes;

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_removeAllStatements(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_removeAllStatements(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Util::DummyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::removeAllStatements(*a0) : sipCpp->removeAllStatements(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_listStatements(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_listStatements(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator((sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::listStatements(*a0) : sipCpp->listStatements(*a0)));
            Py_END_ALLOW_THREADS

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

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Soprano::StatementIterator *sipRes;

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_listContexts(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_listContexts(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Util::DummyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::NodeIterator((sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::listContexts() : sipCpp->listContexts()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_executeQuery(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_executeQuery(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        Soprano::Query::QueryLanguage a1;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E|J1", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_QString,&a0, &a0State, sipType_Soprano_Query_QueryLanguage, &a1, sipType_QString,&a2, &a2State))
        {
            Soprano::QueryResultIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::QueryResultIterator((sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::executeQuery(*a0,a1,*a2) : sipCpp->executeQuery(*a0,a1,*a2)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_containsAnyStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_containsAnyStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::containsAnyStatement(*a0) : sipCpp->containsAnyStatement(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_containsStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_containsStatement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::containsStatement(*a0) : sipCpp->containsStatement(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Util::DummyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::isEmpty() : sipCpp->isEmpty());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_statementCount(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_statementCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Util::DummyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::statementCount() : sipCpp->statementCount());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_write(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_write(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTextStream * a0;
        Soprano::Util::DummyModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Util_DummyModel, &sipCpp, sipType_QTextStream, &a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::write(*a0) : sipCpp->write(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_DummyModel_createBlankNode(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_DummyModel_createBlankNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Util::DummyModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node((sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::createBlankNode() : sipCpp->createBlankNode()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_DummyModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Model)->ctd_cast((Soprano::Model *)(Soprano::Util::DummyModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Util_DummyModel *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Util::DummyModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Util_DummyModel(sipSimpleWrapper *);}
static void dealloc_Soprano_Util_DummyModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Util_DummyModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Util_DummyModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Soprano_Util_DummyModel[] = {
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_Util_DummyModel_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Util_DummyModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Util_DummyModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Util_DummyModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatement), meth_Soprano_Util_DummyModel_containsAnyStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatement), meth_Soprano_Util_DummyModel_containsStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createBlankNode), meth_Soprano_Util_DummyModel_createBlankNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Util_DummyModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Util_DummyModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQuery), meth_Soprano_Util_DummyModel_executeQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_Util_DummyModel_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContexts), meth_Soprano_Util_DummyModel_listContexts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatements), meth_Soprano_Util_DummyModel_listStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Util_DummyModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_Util_DummyModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_Util_DummyModel_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Soprano_Util_DummyModel_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Util_DummyModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementCount), meth_Soprano_Util_DummyModel_statementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Util_DummyModel_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_write), meth_Soprano_Util_DummyModel_write, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Util_DummyModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Util__DummyModel,
        {0}
    },
    {
        sipNameNr_DummyModel,
        {74, 255, 0},
        21, methods_Soprano_Util_DummyModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Util_DummyModel,
    0,
    init_Soprano_Util_DummyModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Util_DummyModel,
    0,
    0,
    0,
    release_Soprano_Util_DummyModel,
    cast_Soprano_Util_DummyModel,
    0,
    0,
    0
},
    &Soprano::Util::DummyModel::staticMetaObject,
    0,
    0
};

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 5520 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 5524 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 5527 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 5530 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 5533 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5536 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 5539 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 5542 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5545 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5548 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5551 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5554 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5557 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5560 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5563 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5566 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5569 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5572 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5575 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5578 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5581 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 5584 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"


class sipSoprano_Model : public Soprano::Model
{
public:
    sipSoprano_Model();
    virtual ~sipSoprano_Model();

    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;
    QObject * sipProtect_sender() 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:
    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 containsAnyStatement(const Soprano::Statement&) const;
    bool containsStatement(const Soprano::Statement&) const;
    bool isEmpty() const;
    int statementCount() const;
    Soprano::Error::ErrorCode write(QTextStream&) const;
    Soprano::Node createBlankNode();
    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_Model(const sipSoprano_Model &);
    sipSoprano_Model &operator = (const sipSoprano_Model &);

    char sipPyMethods[20];
};

sipSoprano_Model::sipSoprano_Model(): Soprano::Model(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Model::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Model);
}

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

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

    return _id;
}

void *sipSoprano_Model::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Model,_clname)) ? this : Soprano::Model::qt_metacast(_clname);
}

Soprano::Error::ErrorCode sipSoprano_Model::addStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_Model,sipName_addStatement);

    if (!sipMeth)
        return (Soprano::Error::ErrorCode)0;

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::Error::ErrorCode sipSoprano_Model::removeStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_Model,sipName_removeStatement);

    if (!sipMeth)
        return (Soprano::Error::ErrorCode)0;

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::Error::ErrorCode sipSoprano_Model::removeAllStatements(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_Model,sipName_removeAllStatements);

    if (!sipMeth)
        return (Soprano::Error::ErrorCode)0;

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

Soprano::StatementIterator sipSoprano_Model::listStatements(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,sipName_Model,sipName_listStatements);

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

    extern Soprano::StatementIterator sipVH_soprano_16(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_16(sipGILState,sipMeth,a0);
}

Soprano::NodeIterator sipSoprano_Model::listContexts() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_Model,sipName_listContexts);

    if (!sipMeth)
        return Soprano::NodeIterator();

    extern Soprano::NodeIterator sipVH_soprano_15(sip_gilstate_t,PyObject *);

    return sipVH_soprano_15(sipGILState,sipMeth);
}

Soprano::QueryResultIterator sipSoprano_Model::executeQuery(const QString& a0,Soprano::Query::QueryLanguage a1,const QString& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,sipName_Model,sipName_executeQuery);

    if (!sipMeth)
        return Soprano::QueryResultIterator();

    extern Soprano::QueryResultIterator sipVH_soprano_12(sip_gilstate_t,PyObject *,const QString&,Soprano::Query::QueryLanguage,const QString&);

    return sipVH_soprano_12(sipGILState,sipMeth,a0,a1,a2);
}

bool sipSoprano_Model::containsAnyStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,sipName_Model,sipName_containsAnyStatement);

    if (!sipMeth)
        return 0;

    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

bool sipSoprano_Model::containsStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,sipName_Model,sipName_containsStatement);

    if (!sipMeth)
        return 0;

    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

bool sipSoprano_Model::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,sipName_Model,sipName_isEmpty);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

int sipSoprano_Model::statementCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,sipName_Model,sipName_statementCount);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_soprano_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

Soprano::Error::ErrorCode sipSoprano_Model::write(QTextStream& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Model::write(a0);

    extern Soprano::Error::ErrorCode sipVH_soprano_14(sip_gilstate_t,PyObject *,QTextStream&);

    return sipVH_soprano_14(sipGILState,sipMeth,a0);
}

Soprano::Node sipSoprano_Model::createBlankNode()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_Model,sipName_createBlankNode);

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

    extern Soprano::Node sipVH_soprano_13(sip_gilstate_t,PyObject *);

    return sipVH_soprano_13(sipGILState,sipMeth);
}

bool sipSoprano_Model::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_event);

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

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_soprano_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

bool sipSoprano_Model::eventFilter(QObject *a0,QEvent *a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_eventFilter);

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

void sipSoprano_Model::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_timerEvent);

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

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_soprano_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Model::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_childEvent);

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_soprano_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Model::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_customEvent);

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_soprano_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Model::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_connectNotify);

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_soprano_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

void sipSoprano_Model::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_disconnectNotify);

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

    ((sipVH_QtCore_24)(sipModuleAPI_soprano_QtCore->em_virthandlers[24]))(sipGILState,sipMeth,a0);
}

Soprano::Error::Error sipSoprano_Model::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::Error::Error sipVH_soprano_20(sip_gilstate_t,PyObject *);

    return sipVH_soprano_20(sipGILState,sipMeth);
}

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

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

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

QObject * sipSoprano_Model::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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


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

    {
        sipSoprano_Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Model, &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(sipParseErr, sipName_Model, sipName_clearError, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Model, &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_Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Model, &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(sipParseErr, sipName_Model, sipName_setError, NULL);

    return NULL;
}


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

    {
        sipSoprano_Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Model, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 6141 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Model, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 6183 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Model_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Model_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipSoprano_Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Model, &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(sipParseErr, sipName_Model, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Model_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Model_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipSoprano_Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Model, &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(sipParseErr, sipName_Model, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Model_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Model_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipSoprano_Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Model, &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(sipParseErr, sipName_Model, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Model_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Model_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Model, &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(sipParseErr, sipName_Model, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Model_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Model_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Model, &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(sipParseErr, sipName_Model, sipName_disconnectNotify, NULL);

    return NULL;
}


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

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

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_addStatement);
                return NULL;
            }

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Soprano::Error::ErrorCode sipRes;

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        const QList<Soprano::Statement> * a0;
        int a0State = 0;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_QList_0100Soprano_Statement,&a0, &a0State))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addStatements(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::Statement> *>(a0),sipType_QList_0100Soprano_Statement,a0State);

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_removeStatement);
                return NULL;
            }

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Soprano::Error::ErrorCode sipRes;

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_removeAllStatements);
                return NULL;
            }

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Soprano::Error::ErrorCode sipRes;

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    {
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Model, &sipCpp))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeAllStatements();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        const QList<Soprano::Statement> * a0;
        int a0State = 0;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_QList_0100Soprano_Statement,&a0, &a0State))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeStatements(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::Statement> *>(a0),sipType_QList_0100Soprano_Statement,a0State);

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Node, &a0))
        {
            Soprano::Error::ErrorCode sipRes;

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            Soprano::StatementIterator *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_listStatements);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator(sipCpp->listStatements(*a0));
            Py_END_ALLOW_THREADS

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

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Soprano::StatementIterator *sipRes;

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

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

    {
        Soprano::Model *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator(sipCpp->listStatements());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Node, &a0))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator(sipCpp->listStatementsInContext(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Model *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_listContexts);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::NodeIterator(sipCpp->listContexts());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Soprano::Query::QueryLanguage a1;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E|J1", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_QString,&a0, &a0State, sipType_Soprano_Query_QueryLanguage, &a1, sipType_QString,&a2, &a2State))
        {
            Soprano::QueryResultIterator *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_executeQuery);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::QueryResultIterator(sipCpp->executeQuery(*a0,a1,*a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_containsAnyStatement);
                return NULL;
            }

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Statement, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_containsStatement);
                return NULL;
            }

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9|J9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Model *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_isEmpty);
                return NULL;
            }

            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(sipParseErr, sipName_Model, sipName_isEmpty, NULL);

    return NULL;
}


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

    {
        Soprano::Model *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_statementCount);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->statementCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Model_write(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Model_write(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTextStream * a0;
        Soprano::Model *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Model, &sipCpp, sipType_QTextStream, &a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Model::write(*a0) : sipCpp->write(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Model *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Model, sipName_createBlankNode);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Model)
        return ptr;

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

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Model *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Model *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Model(sipSimpleWrapper *);}
static void dealloc_Soprano_Model(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Model *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Model(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_Model[] = {{134, 0, 0}, {30, 255, 1}};


static PyMethodDef methods_Soprano_Model[] = {
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_Model_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addStatements), meth_Soprano_Model_addStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Model_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Model_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Model_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatement), meth_Soprano_Model_containsAnyStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsContext), meth_Soprano_Model_containsContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatement), meth_Soprano_Model_containsStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createBlankNode), meth_Soprano_Model_createBlankNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Model_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Model_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQuery), meth_Soprano_Model_executeQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_Model_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContexts), meth_Soprano_Model_listContexts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatements), meth_Soprano_Model_listStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatementsInContext), meth_Soprano_Model_listStatementsInContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Model_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_Model_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeContext), meth_Soprano_Model_removeContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_Model_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatements), meth_Soprano_Model_removeStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Soprano_Model_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Model_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementCount), meth_Soprano_Model_statementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Model_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_write), meth_Soprano_Model_write, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Soprano_Model[] = {
    {"statementRemoved(Soprano::Statement)", 0, 0},
    {"statementAdded(Soprano::Statement)", 0, 0},
    {"statementsRemoved()", 0, 0},
    {"statementsAdded()", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Model = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Model,
        {0}
    },
    {
        sipNameNr_Model,
        {11, 255, 0},
        26, methods_Soprano_Model,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Model,
    0,
    init_Soprano_Model,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Model,
    0,
    0,
    0,
    release_Soprano_Model,
    cast_Soprano_Model,
    0,
    0,
    0
},
    &Soprano::Model::staticMetaObject,
    0,
    pyqt4_signals_Soprano_Model
};

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/dbusstatementiterator.sip"
#include <soprano/dbusstatementiterator.h>
#line 7212 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7216 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7219 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 7222 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 7225 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart4.cpp"


class sipSoprano_Client_DBusStatementIterator : public Soprano::Client::DBusStatementIterator
{
public:
    sipSoprano_Client_DBusStatementIterator(const QString&,const QString&);
    sipSoprano_Client_DBusStatementIterator(const Soprano::Client::DBusStatementIterator&);
    ~sipSoprano_Client_DBusStatementIterator();

public:
    sipSimpleWrapper *sipPySelf;

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

sipSoprano_Client_DBusStatementIterator::sipSoprano_Client_DBusStatementIterator(const QString& a0,const QString& a1): Soprano::Client::DBusStatementIterator(a0,a1), sipPySelf(0)
{
}

sipSoprano_Client_DBusStatementIterator::sipSoprano_Client_DBusStatementIterator(const Soprano::Client::DBusStatementIterator& a0): Soprano::Client::DBusStatementIterator(a0), sipPySelf(0)
{
}

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


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

    if (targetType == sipType_Soprano_Client_DBusStatementIterator)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_StatementIterator)->ctd_cast((Soprano::StatementIterator *)(Soprano::Client::DBusStatementIterator *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Client_DBusStatementIterator *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Client::DBusStatementIterator *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Client_DBusStatementIterator(sipSimpleWrapper *);}
static void dealloc_Soprano_Client_DBusStatementIterator(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Client_DBusStatementIterator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Client_DBusStatementIterator(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_DBusStatementIterator(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Client::DBusStatementIterator * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client_DBusStatementIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__DBusStatementIterator,
        {0}
    },
    {
        sipNameNr_DBusStatementIterator,
        {19, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Client_DBusStatementIterator,
    0,
    init_Soprano_Client_DBusStatementIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_DBusStatementIterator,
    0,
    0,
    0,
    release_Soprano_Client_DBusStatementIterator,
    cast_Soprano_Client_DBusStatementIterator,
    0,
    0,
    0
},
    0,
    0,
    0
};
