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

#include "sipAPIsoprano.h"



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


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

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/graph.sip"
#include <soprano/graph.h>
#line 65 "sipsopranopart5.cpp"

#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 87 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 90 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 93 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 96 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 99 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 102 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 105 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 108 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 111 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 114 "sipsopranopart5.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 117 "sipsopranopart5.cpp"


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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Graph,&sipCpp,sipType_QList_0200Soprano_Statement,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addStatements(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Soprano::Statement> *>(a0),sipType_QList_0200Soprano_Statement,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Graph,&sipCpp,sipType_QList_0200Soprano_Statement,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeStatements(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QList<Soprano::Statement> *>(a0),sipType_QList_0200Soprano_Statement,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        Soprano::Graph *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        Soprano::Graph *sipCpp;

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

    return NULL;
}


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

    {
        Soprano::Graph *sipCpp;

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

    return NULL;
}


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

    {
        Soprano::Graph *sipCpp;

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    int sipArgsParsed = 0;

    {
        const Soprano::Graph * a0;

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

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


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

    int sipArgsParsed = 0;

    {
        const Soprano::Graph * a0;

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

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


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

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

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

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


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

    int sipArgsParsed = 0;

    {
        const Soprano::Graph * a0;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Graph::operator-=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

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

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


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

    int sipArgsParsed = 0;

    {
        const Soprano::Graph * a0;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Graph::operator+=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

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

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


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


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

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

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

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

    if (!sipCpp)
    {
        const QList<Soprano::Statement> * a0;
        int a0State = 0;

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

    return sipCpp;
}


/* 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 pyqt4Type_soprano_Soprano_Graph = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Graph,
        {0}
    },
    sipNameNr_Graph,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    slots_Soprano_Graph,
    15, methods_Soprano_Graph,
    0, 0,
    0, 0,
    init_Soprano_Graph,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Graph,
    release_Soprano_Graph,
    cast_Soprano_Graph,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Graph,
    0,
    0,
    0
};

#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 1106 "sipsopranopart5.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 1110 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 1113 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 1116 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1119 "sipsopranopart5.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1140 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 1143 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 1146 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 1149 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 1152 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 1155 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 1158 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 1161 "sipsopranopart5.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 1164 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1167 "sipsopranopart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1170 "sipsopranopart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1173 "sipsopranopart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1176 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1179 "sipsopranopart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1210 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1213 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1216 "sipsopranopart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1219 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1222 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1225 "sipsopranopart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1228 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1231 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1234 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1237 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 1240 "sipsopranopart5.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;
    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)
{
    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_Model,sipName_removeStatement);

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_Model,sipName_removeAllStatements);

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_19(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_18(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return sipVH_soprano_1(sipGILState,meth,a0);
}

bool sipSoprano_Model::isEmpty() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_16(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_Model,sipName_createBlankNode);

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

    return sipVH_soprano_15(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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)
{
    int sipArgsParsed = 0;

    {
        sipSoprano_Model *sipCpp;

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&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(&sipArgsParsed,sipArgs,"pJ1|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(sipArgsParsed,sipName_Model,sipName_setError);

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Model *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Model *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Model *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Model *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Model *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Model *sipCpp;

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

    return NULL;
}


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

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

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

            if (sipSelfWasArg)
            {
                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(&sipArgsParsed,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(sipArgsParsed,sipName_Model,sipName_addStatement);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Model,&sipCpp,sipType_QList_0200Soprano_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_0200Soprano_Statement,a0State);

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

            if (sipSelfWasArg)
            {
                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(&sipArgsParsed,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(sipArgsParsed,sipName_Model,sipName_removeStatement);

    return NULL;
}


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

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

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

            if (sipSelfWasArg)
            {
                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(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_Model,sipName_removeAllStatements);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Model,&sipCpp,sipType_QList_0200Soprano_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_0200Soprano_Statement,a0State);

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

            if (sipSelfWasArg)
            {
                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(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_Model,sipName_listStatements);

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        Soprano::Model *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Model,sipName_listContexts);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Model_executeQuery(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Model_executeQuery(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    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::Model *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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 (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Model,sipName_executeQuery);

    return NULL;
}


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

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

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

            if (sipSelfWasArg)
            {
                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(&sipArgsParsed,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(sipArgsParsed,sipName_Model,sipName_containsAnyStatement);

    return NULL;
}


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

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

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

            if (sipSelfWasArg)
            {
                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(&sipArgsParsed,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(sipArgsParsed,sipName_Model,sipName_containsStatement);

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        Soprano::Model *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Model,sipName_isEmpty);

    return NULL;
}


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

    {
        Soprano::Model *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Model,sipName_statementCount);

    return NULL;
}


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

    {
        QTextStream * a0;
        Soprano::Model *sipCpp;

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

    return NULL;
}


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

    {
        Soprano::Model *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Model,sipName_createBlankNode);

    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 state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & 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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Soprano_Model[] = {{111, 0, 0}, {29, 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_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(const Soprano::Statement&)", 0},
    {"statementAdded(const Soprano::Statement&)", 0},
    {"statementsRemoved()", 0},
    {"statementsAdded()", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Model = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Model,
        {0}
    },
    sipNameNr_Model,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_Model,
    0,
    25, methods_Soprano_Model,
    0, 0,
    0, 0,
    init_Soprano_Model,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Model,
    release_Soprano_Model,
    cast_Soprano_Model,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Model::staticMetaObject,
    0,
    pyqt4_signals_Soprano_Model
};


#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2836 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2839 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2842 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2845 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 2848 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 2851 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 2854 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 2857 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 2860 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 2863 "sipsopranopart5.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2866 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2869 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2872 "sipsopranopart5.cpp"


class sipSoprano_StatementIterator : public Soprano::StatementIterator
{
public:
    sipSoprano_StatementIterator();
    sipSoprano_StatementIterator(Soprano::StatementIteratorBackendBase *);
    sipSoprano_StatementIterator(const Soprano::StatementIterator&);
    virtual ~sipSoprano_StatementIterator();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipSoprano_StatementIterator::sipSoprano_StatementIterator(): Soprano::StatementIterator(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_StatementIterator::sipSoprano_StatementIterator(Soprano::StatementIteratorBackendBase *a0): Soprano::StatementIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_StatementIterator::sipSoprano_StatementIterator(const Soprano::StatementIterator& a0): Soprano::StatementIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        sipSoprano_StatementIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::StatementIterator *sipCpp;

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::StatementIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::StatementIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::StatementIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::StatementIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_StatementIterator)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_StatementIteratorBase)->ctd_cast((Soprano::StatementIteratorBase *)(Soprano::StatementIterator *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

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


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

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

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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_StatementIterator,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_StatementIterator(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_StatementIterator[] = {
    {SIP_MLNAME_CAST(sipName_allStatements), meth_Soprano_StatementIterator_allStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_StatementIterator_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iterateContexts), meth_Soprano_StatementIterator_iterateContexts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iterateObjects), meth_Soprano_StatementIterator_iterateObjects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iteratePredicates), meth_Soprano_StatementIterator_iteratePredicates, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iterateSubjects), meth_Soprano_StatementIterator_iterateSubjects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_StatementIterator_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_StatementIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__StatementIterator,
        {0}
    },
    sipNameNr_StatementIterator,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_StatementIterator,
    0,
    7, methods_Soprano_StatementIterator,
    0, 0,
    0, 0,
    init_Soprano_StatementIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_StatementIterator,
    release_Soprano_StatementIterator,
    cast_Soprano_StatementIterator,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_StatementIterator,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/dbusstatementiterator.sip"
#include <soprano/dbusstatementiterator.h>
#line 3328 "sipsopranopart5.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3332 "sipsopranopart5.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3353 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 3356 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 3359 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 3362 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 3365 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 3368 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 3371 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 3374 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 3377 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 3380 "sipsopranopart5.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 3383 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 3386 "sipsopranopart5.cpp"


class sipSoprano_Client_DBusStatementIterator : public Soprano::Client::DBusStatementIterator
{
public:
    sipSoprano_Client_DBusStatementIterator(const QString&,const QString&);
    sipSoprano_Client_DBusStatementIterator(const Soprano::Client::DBusStatementIterator&);
    virtual ~sipSoprano_Client_DBusStatementIterator();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipSoprano_Client_DBusStatementIterator::sipSoprano_Client_DBusStatementIterator(const QString& a0,const QString& a1): Soprano::Client::DBusStatementIterator(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_Client_DBusStatementIterator::sipSoprano_Client_DBusStatementIterator(const Soprano::Client::DBusStatementIterator& a0): Soprano::Client::DBusStatementIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        sipSoprano_Client_DBusStatementIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


/* 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 state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & 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 *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

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


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

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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Client_DBusStatementIterator,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_DBusStatementIterator(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Client_DBusStatementIterator[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_DBusStatementIterator_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_DBusStatementIterator_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Client_DBusStatementIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__DBusStatementIterator,
        {0}
    },
    sipNameNr_DBusStatementIterator,
    -1,
    -1,
    {18, 255, 0},
    supers_Soprano_Client_DBusStatementIterator,
    0,
    2, methods_Soprano_Client_DBusStatementIterator,
    0, 0,
    0, 0,
    init_Soprano_Client_DBusStatementIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_DBusStatementIterator,
    release_Soprano_Client_DBusStatementIterator,
    cast_Soprano_Client_DBusStatementIterator,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3683 "sipsopranopart5.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3704 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 3707 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 3710 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 3713 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 3716 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 3719 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 3722 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 3725 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 3728 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 3731 "sipsopranopart5.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 3734 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 3737 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 3740 "sipsopranopart5.cpp"


class sipSoprano_QueryResultIterator : public Soprano::QueryResultIterator
{
public:
    sipSoprano_QueryResultIterator();
    sipSoprano_QueryResultIterator(const Soprano::QueryResultIterator&);
    sipSoprano_QueryResultIterator(Soprano::QueryResultIteratorBackend *);
    virtual ~sipSoprano_QueryResultIterator();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipSoprano_QueryResultIterator::sipSoprano_QueryResultIterator(): Soprano::QueryResultIterator(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_QueryResultIterator::sipSoprano_QueryResultIterator(const Soprano::QueryResultIterator& a0): Soprano::QueryResultIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_QueryResultIterator::sipSoprano_QueryResultIterator(Soprano::QueryResultIteratorBackend *a0): Soprano::QueryResultIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        sipSoprano_QueryResultIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->boolValue();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    {
        int a0;
        Soprano::QueryResultIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bindingCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isGraph();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBinding();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator(sipCpp->iterateStatements());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::NodeIterator(sipCpp->iterateBindings(*a0));
            Py_END_ALLOW_THREADS

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

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

    {
        int a0;
        Soprano::QueryResultIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_QueryResultIterator)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

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


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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_QueryResultIterator,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_QueryResultIterator(*a0);
            Py_END_ALLOW_THREADS
        }
    }

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_QueryResultIterator[] = {
    {SIP_MLNAME_CAST(sipName_allBindings), meth_Soprano_QueryResultIterator_allBindings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_binding), meth_Soprano_QueryResultIterator_binding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindingCount), meth_Soprano_QueryResultIterator_bindingCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindingNames), meth_Soprano_QueryResultIterator_bindingNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_boolValue), meth_Soprano_QueryResultIterator_boolValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_QueryResultIterator_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentBindings), meth_Soprano_QueryResultIterator_currentBindings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentStatement), meth_Soprano_QueryResultIterator_currentStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBinding), meth_Soprano_QueryResultIterator_isBinding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBool), meth_Soprano_QueryResultIterator_isBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isGraph), meth_Soprano_QueryResultIterator_isGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iterateBindings), meth_Soprano_QueryResultIterator_iterateBindings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iterateStatements), meth_Soprano_QueryResultIterator_iterateStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_QueryResultIterator_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_QueryResultIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__QueryResultIterator,
        {0}
    },
    sipNameNr_QueryResultIterator,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_QueryResultIterator,
    0,
    14, methods_Soprano_QueryResultIterator,
    0, 0,
    0, 0,
    init_Soprano_QueryResultIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_QueryResultIterator,
    release_Soprano_QueryResultIterator,
    cast_Soprano_QueryResultIterator,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_QueryResultIterator,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/dbusqueryresultiterator.sip"
#include <soprano/dbusqueryresultiterator.h>
#line 4432 "sipsopranopart5.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4436 "sipsopranopart5.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4457 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 4460 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 4463 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 4466 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 4469 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 4472 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 4475 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 4478 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 4481 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 4484 "sipsopranopart5.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 4487 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4490 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 4493 "sipsopranopart5.cpp"


class sipSoprano_Client_DBusQueryResultIterator : public Soprano::Client::DBusQueryResultIterator
{
public:
    sipSoprano_Client_DBusQueryResultIterator(const QString&,const QString&);
    sipSoprano_Client_DBusQueryResultIterator(const Soprano::Client::DBusQueryResultIterator&);
    virtual ~sipSoprano_Client_DBusQueryResultIterator();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipSoprano_Client_DBusQueryResultIterator::sipSoprano_Client_DBusQueryResultIterator(const QString& a0,const QString& a1): Soprano::Client::DBusQueryResultIterator(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_Client_DBusQueryResultIterator::sipSoprano_Client_DBusQueryResultIterator(const Soprano::Client::DBusQueryResultIterator& a0): Soprano::Client::DBusQueryResultIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        sipSoprano_Client_DBusQueryResultIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_DBusQueryResultIterator)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_QueryResultIterator)->ctd_cast((Soprano::QueryResultIterator *)(Soprano::Client::DBusQueryResultIterator *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Client_DBusQueryResultIterator,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_DBusQueryResultIterator(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Client_DBusQueryResultIterator[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_DBusQueryResultIterator_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_DBusQueryResultIterator_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Client_DBusQueryResultIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__DBusQueryResultIterator,
        {0}
    },
    sipNameNr_DBusQueryResultIterator,
    -1,
    -1,
    {18, 255, 0},
    supers_Soprano_Client_DBusQueryResultIterator,
    0,
    2, methods_Soprano_Client_DBusQueryResultIterator,
    0, 0,
    0, 0,
    init_Soprano_Client_DBusQueryResultIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_DBusQueryResultIterator,
    release_Soprano_Client_DBusQueryResultIterator,
    cast_Soprano_Client_DBusQueryResultIterator,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4808 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 4811 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 4814 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 4817 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 4820 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 4823 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 4826 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 4829 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 4832 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 4835 "sipsopranopart5.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 4838 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 4841 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4844 "sipsopranopart5.cpp"


class sipSoprano_NodeIterator : public Soprano::NodeIterator
{
public:
    sipSoprano_NodeIterator();
    sipSoprano_NodeIterator(Soprano::NodeIteratorBackendBase *);
    sipSoprano_NodeIterator(const Soprano::NodeIterator&);
    virtual ~sipSoprano_NodeIterator();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipSoprano_NodeIterator::sipSoprano_NodeIterator(): Soprano::NodeIterator(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_NodeIterator::sipSoprano_NodeIterator(Soprano::NodeIteratorBackendBase *a0): Soprano::NodeIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_NodeIterator::sipSoprano_NodeIterator(const Soprano::NodeIterator& a0): Soprano::NodeIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        sipSoprano_NodeIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::NodeIterator *sipCpp;

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

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

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

            return sipResObj;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_NodeIterator)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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

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


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

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

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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_NodeIterator,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_NodeIterator(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_NodeIterator[] = {
    {SIP_MLNAME_CAST(sipName_allNodes), meth_Soprano_NodeIterator_allNodes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_NodeIterator_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_NodeIterator_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_NodeIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__NodeIterator,
        {0}
    },
    sipNameNr_NodeIterator,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_NodeIterator,
    0,
    3, methods_Soprano_NodeIterator,
    0, 0,
    0, 0,
    init_Soprano_NodeIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_NodeIterator,
    release_Soprano_NodeIterator,
    cast_Soprano_NodeIterator,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_NodeIterator,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/dbusnodeiterator.sip"
#include <soprano/dbusnodeiterator.h>
#line 5188 "sipsopranopart5.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5192 "sipsopranopart5.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5213 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5216 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 5219 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 5222 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 5225 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 5228 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 5231 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 5234 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 5237 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 5240 "sipsopranopart5.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5243 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 5246 "sipsopranopart5.cpp"


class sipSoprano_Client_DBusNodeIterator : public Soprano::Client::DBusNodeIterator
{
public:
    sipSoprano_Client_DBusNodeIterator(const QString&,const QString&);
    sipSoprano_Client_DBusNodeIterator(const Soprano::Client::DBusNodeIterator&);
    virtual ~sipSoprano_Client_DBusNodeIterator();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipSoprano_Client_DBusNodeIterator::sipSoprano_Client_DBusNodeIterator(const QString& a0,const QString& a1): Soprano::Client::DBusNodeIterator(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_Client_DBusNodeIterator::sipSoprano_Client_DBusNodeIterator(const Soprano::Client::DBusNodeIterator& a0): Soprano::Client::DBusNodeIterator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        sipSoprano_Client_DBusNodeIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_DBusNodeIterator)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_NodeIterator)->ctd_cast((Soprano::NodeIterator *)(Soprano::Client::DBusNodeIterator *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Client_DBusNodeIterator,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_DBusNodeIterator(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Client_DBusNodeIterator[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_DBusNodeIterator_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_DBusNodeIterator_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Client_DBusNodeIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__DBusNodeIterator,
        {0}
    },
    sipNameNr_DBusNodeIterator,
    -1,
    -1,
    {18, 255, 0},
    supers_Soprano_Client_DBusNodeIterator,
    0,
    2, methods_Soprano_Client_DBusNodeIterator,
    0, 0,
    0, 0,
    init_Soprano_Client_DBusNodeIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_DBusNodeIterator,
    release_Soprano_Client_DBusNodeIterator,
    cast_Soprano_Client_DBusNodeIterator,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/storagemodel.sip"
#include <soprano/storagemodel.h>
#line 5542 "sipsopranopart5.cpp"

#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5546 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 5549 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 5552 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 5555 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5558 "sipsopranopart5.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5579 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5582 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 5585 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 5588 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 5591 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 5594 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 5597 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 5600 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5603 "sipsopranopart5.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5606 "sipsopranopart5.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5609 "sipsopranopart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5612 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5615 "sipsopranopart5.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 5646 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 5649 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5652 "sipsopranopart5.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5655 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5658 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 5661 "sipsopranopart5.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5664 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5667 "sipsopranopart5.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5670 "sipsopranopart5.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5673 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 5676 "sipsopranopart5.cpp"


class sipSoprano_StorageModel : public Soprano::StorageModel
{
public:
    sipSoprano_StorageModel(const Soprano::Backend *);
    virtual ~sipSoprano_StorageModel();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool isEmpty() const;
    bool containsStatement(const Soprano::Statement&) const;
    bool containsAnyStatement(const Soprano::Statement&) const;
    Soprano::Error::ErrorCode removeAllStatements(const Soprano::Statement&);
    Soprano::Error::ErrorCode addStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeStatement(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;
    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_StorageModel(const sipSoprano_StorageModel &);
    sipSoprano_StorageModel &operator = (const sipSoprano_StorageModel &);

    char sipPyMethods[20];
};

sipSoprano_StorageModel::sipSoprano_StorageModel(const Soprano::Backend *a0): Soprano::StorageModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_StorageModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_StorageModel);
}

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

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

    return _id;
}

void *sipSoprano_StorageModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_StorageModel,_clname)) ? this : Soprano::StorageModel::qt_metacast(_clname);
}

bool sipSoprano_StorageModel::isEmpty() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_StorageModel,sipName_addStatement);

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_StorageModel,sipName_removeStatement);

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_19(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_18(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_16(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_StorageModel,sipName_createBlankNode);

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

    return sipVH_soprano_15(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_StorageModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_StorageModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_StorageModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_StorageModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_StorageModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_StorageModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_StorageModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::StorageModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::StorageModel::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(sipArgsParsed,sipName_StorageModel,sipName_removeAllStatements);

    return NULL;
}


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

    {
        Soprano::StorageModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->backend();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_StorageModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_StorageModel[] = {
    {SIP_MLNAME_CAST(sipName_backend), meth_Soprano_StorageModel_backend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_StorageModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_StorageModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_StorageModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatement), meth_Soprano_StorageModel_containsAnyStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatement), meth_Soprano_StorageModel_containsStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_StorageModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_StorageModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_StorageModel_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_StorageModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_StorageModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_StorageModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_StorageModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_StorageModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__StorageModel,
        {0}
    },
    sipNameNr_StorageModel,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_StorageModel,
    0,
    13, methods_Soprano_StorageModel,
    0, 0,
    0, 0,
    init_Soprano_StorageModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_StorageModel,
    release_Soprano_StorageModel,
    cast_Soprano_StorageModel,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::StorageModel::staticMetaObject,
    0,
    0
};
