/*
 * Module code.
 *
 * Generated by SIP 4.10.2 on Sun Jul 11 10:12:34 2010
 */

#include "sipAPIsoprano.h"

#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/dbusqueryresultiterator.sip"
#include <soprano/dbusqueryresultiterator.h>
#line 12 "sipsopranopart5.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 19 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 22 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 25 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 28 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 31 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 34 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 37 "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&);
    ~sipSoprano_Client_DBusQueryResultIterator();

public:
    sipSimpleWrapper *sipPySelf;

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

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

sipSoprano_Client_DBusQueryResultIterator::sipSoprano_Client_DBusQueryResultIterator(const Soprano::Client::DBusQueryResultIterator& a0): Soprano::Client::DBusQueryResultIterator(a0), sipPySelf(0)
{
}

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


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

    if (sipState & 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 *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Client_DBusQueryResultIterator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_Client_DBusQueryResultIterator *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Client::DBusQueryResultIterator * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client_DBusQueryResultIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__DBusQueryResultIterator,
        {0}
    },
    {
        sipNameNr_DBusQueryResultIterator,
        {19, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Client_DBusQueryResultIterator,
    0,
    init_Soprano_Client_DBusQueryResultIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_DBusQueryResultIterator,
    0,
    0,
    0,
    release_Soprano_Client_DBusQueryResultIterator,
    cast_Soprano_Client_DBusQueryResultIterator,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 213 "sipsopranopart5.cpp"

#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 217 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 220 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 223 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 226 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 229 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 232 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 235 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 238 "sipsopranopart5.cpp"


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

public:
    sipSimpleWrapper *sipPySelf;

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

sipSoprano_QueryResultIterator::sipSoprano_QueryResultIterator(): Soprano::QueryResultIterator(), sipPySelf(0)
{
}

sipSoprano_QueryResultIterator::sipSoprano_QueryResultIterator(const Soprano::QueryResultIterator& a0): Soprano::QueryResultIterator(a0), sipPySelf(0)
{
}

sipSoprano_QueryResultIterator::sipSoprano_QueryResultIterator(Soprano::QueryResultIteratorBackend *a0): Soprano::QueryResultIterator(a0), sipPySelf(0)
{
}

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


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

    {
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_currentStatement, NULL);

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_currentBindings, NULL);

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_boolValue, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_binding, NULL);

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_bindingCount, NULL);

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_bindingNames, NULL);

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_isGraph, NULL);

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_isBinding, NULL);

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_isBool, NULL);

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

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

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_iterateStatements, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(&sipParseErr, 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(sipParseErr, sipName_QueryResultIterator, sipName_iterateBindings, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const QString * a2;
        int a2State = 0;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;
        const Soprano::Statement& a4def = Soprano::Statement();
        const Soprano::Statement * a4 = &a4def;
        Soprano::QueryResultIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1|J1J9", &sipSelf, sipType_Soprano_QueryResultIterator, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State, sipType_Soprano_Statement, &a4))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator(sipCpp->iterateStatementsFromBindings(*a0,*a1,*a2,*a3,*a4));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

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

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->next();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::QueryResultIterator *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_QueryResultIterator___getitem__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_QueryResultIterator___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::QueryResultIterator *sipCpp = reinterpret_cast<Soprano::QueryResultIterator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_QueryResultIterator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node((*sipCpp)[a0]);
            Py_END_ALLOW_THREADS

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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QString,&a0, &a0State))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node((*sipCpp)[*a0]);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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

    return 0;
}


/* 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)
{
    if (targetType == sipType_Soprano_QueryResultIterator)
        return ptr;

    return NULL;
}


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

    if (sipState & 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 *, SIP_SSIZE_T, const void *);}
static void assign_Soprano_QueryResultIterator(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Soprano::QueryResultIterator *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Soprano::QueryResultIterator *>(sipSrc);
}


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


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


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 *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_QueryResultIterator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_QueryResultIterator *sipCpp = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::QueryResultIterator * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Soprano::QueryResultIteratorBackend * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_QueryResultIterator[] = {
    {(void *)slot_Soprano_QueryResultIterator___getitem__, getitem_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Soprano_QueryResultIterator[] = {
    {SIP_MLNAME_CAST(sipName_allBindings), meth_Soprano_QueryResultIterator_allBindings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allElements), meth_Soprano_QueryResultIterator_allElements, 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_close), meth_Soprano_QueryResultIterator_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_QueryResultIterator_current, 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_isValid), meth_Soprano_QueryResultIterator_isValid, 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_iterateStatementsFromBindings), meth_Soprano_QueryResultIterator_iterateStatementsFromBindings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_QueryResultIterator_next, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_QueryResultIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__QueryResultIterator,
        {0}
    },
    {
        sipNameNr_QueryResultIterator,
        {11, 255, 0},
        18, methods_Soprano_QueryResultIterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Soprano_QueryResultIterator,
    init_Soprano_QueryResultIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_QueryResultIterator,
    assign_Soprano_QueryResultIterator,
    array_Soprano_QueryResultIterator,
    copy_Soprano_QueryResultIterator,
    release_Soprano_QueryResultIterator,
    cast_Soprano_QueryResultIterator,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/dbusnodeiterator.sip"
#include <soprano/dbusnodeiterator.h>
#line 1060 "sipsopranopart5.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1064 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1067 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 1070 "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&);
    ~sipSoprano_Client_DBusNodeIterator();

public:
    sipSimpleWrapper *sipPySelf;

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

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

sipSoprano_Client_DBusNodeIterator::sipSoprano_Client_DBusNodeIterator(const Soprano::Client::DBusNodeIterator& a0): Soprano::Client::DBusNodeIterator(a0), sipPySelf(0)
{
}

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


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

    if (sipState & 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 *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Client_DBusNodeIterator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_Client_DBusNodeIterator *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Client::DBusNodeIterator * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client_DBusNodeIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__DBusNodeIterator,
        {0}
    },
    {
        sipNameNr_DBusNodeIterator,
        {19, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Client_DBusNodeIterator,
    0,
    init_Soprano_Client_DBusNodeIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_DBusNodeIterator,
    0,
    0,
    0,
    release_Soprano_Client_DBusNodeIterator,
    cast_Soprano_Client_DBusNodeIterator,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 1246 "sipsopranopart5.cpp"

#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1250 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 1253 "sipsopranopart5.cpp"


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

public:
    sipSimpleWrapper *sipPySelf;

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

sipSoprano_NodeIterator::sipSoprano_NodeIterator(): Soprano::NodeIterator(), sipPySelf(0)
{
}

sipSoprano_NodeIterator::sipSoprano_NodeIterator(const Soprano::NodeIterator& a0): Soprano::NodeIterator(a0), sipPySelf(0)
{
}

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


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

    {
        Soprano::NodeIterator *sipCpp;

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

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

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

    return NULL;
}


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

    {
        Soprano::NodeIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::NodeIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->next();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::NodeIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::NodeIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::NodeIterator *sipCpp;

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

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

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

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

    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)
{
    if (targetType == sipType_Soprano_NodeIterator)
        return ptr;

    return NULL;
}


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

    if (sipState & 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 *, SIP_SSIZE_T, const void *);}
static void assign_Soprano_NodeIterator(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Soprano::NodeIterator *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Soprano::NodeIterator *>(sipSrc);
}


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


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


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 *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_NodeIterator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_NodeIterator *sipCpp = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::NodeIterator * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Soprano_NodeIterator[] = {
    {SIP_MLNAME_CAST(sipName_allElements), meth_Soprano_NodeIterator_allElements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_allNodes), meth_Soprano_NodeIterator_allNodes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Soprano_NodeIterator_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_NodeIterator_current, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_NodeIterator_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_NodeIterator_next, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_NodeIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__NodeIterator,
        {0}
    },
    {
        sipNameNr_NodeIterator,
        {11, 255, 0},
        6, methods_Soprano_NodeIterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Soprano_NodeIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_NodeIterator,
    assign_Soprano_NodeIterator,
    array_Soprano_NodeIterator,
    copy_Soprano_NodeIterator,
    release_Soprano_NodeIterator,
    cast_Soprano_NodeIterator,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/dbusmodel.sip"
#include <soprano/dbusmodel.h>
#line 1605 "sipsopranopart5.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1609 "sipsopranopart5.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 1612 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 1615 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 1618 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 1621 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 1624 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 1627 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 1630 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1633 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1636 "sipsopranopart5.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1639 "sipsopranopart5.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1642 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1645 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1648 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1651 "sipsopranopart5.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1654 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1657 "sipsopranopart5.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1660 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1663 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1666 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1669 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 1672 "sipsopranopart5.cpp"


class sipSoprano_Client_DBusModel : public Soprano::Client::DBusModel
{
public:
    sipSoprano_Client_DBusModel(const QString&,const QString&,const Soprano::Backend *);
    virtual ~sipSoprano_Client_DBusModel();

    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_Client_DBusModel(const sipSoprano_Client_DBusModel &);
    sipSoprano_Client_DBusModel &operator = (const sipSoprano_Client_DBusModel &);

    char sipPyMethods[20];
};

sipSoprano_Client_DBusModel::sipSoprano_Client_DBusModel(const QString& a0,const QString& a1,const Soprano::Backend *a2): Soprano::Client::DBusModel(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Client_DBusModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Client_DBusModel);
}

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

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

    return _id;
}

void *sipSoprano_Client_DBusModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Client_DBusModel,_clname)) ? this : Soprano::Client::DBusModel::qt_metacast(_clname);
}

bool sipSoprano_Client_DBusModel::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Client::DBusModel::isEmpty();

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

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

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

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

    if (!meth)
        return Soprano::Client::DBusModel::containsStatement(a0);

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

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

    if (!meth)
        return Soprano::Client::DBusModel::containsAnyStatement(a0);

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

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

    if (!meth)
        return Soprano::Client::DBusModel::removeAllStatements(a0);

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

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

    if (!meth)
        return Soprano::Client::DBusModel::addStatement(a0);

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

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

    if (!meth)
        return Soprano::Client::DBusModel::removeStatement(a0);

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

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

    if (!meth)
        return Soprano::Client::DBusModel::listStatements(a0);

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

    return sipVH_soprano_16(sipGILState,meth,a0);
}

Soprano::NodeIterator sipSoprano_Client_DBusModel::listContexts() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Client::DBusModel::listContexts();

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

    return sipVH_soprano_15(sipGILState,meth);
}

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

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

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

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

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

int sipSoprano_Client_DBusModel::statementCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Client::DBusModel::statementCount();

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

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

Soprano::Error::ErrorCode sipSoprano_Client_DBusModel::write(QTextStream& a0) const
{
    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);

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

    return sipVH_soprano_14(sipGILState,meth,a0);
}

Soprano::Node sipSoprano_Client_DBusModel::createBlankNode()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Client::DBusModel::createBlankNode();

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

    return sipVH_soprano_13(sipGILState,meth);
}

bool sipSoprano_Client_DBusModel::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

void sipSoprano_Client_DBusModel::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Client_DBusModel::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Client_DBusModel::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Client_DBusModel::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Client_DBusModel::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

Soprano::Error::Error sipSoprano_Client_DBusModel::lastError() const
{
    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();

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

    return sipVH_soprano_20(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Client_DBusModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Client_DBusModel, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Client_DBusModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Client_DBusModel, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Client_DBusModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Client_DBusModel, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Client_DBusModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Client_DBusModel, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Client_DBusModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Client_DBusModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Soprano::Client::DBusModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->asyncCalls();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        Soprano::Client::DBusModel *sipCpp;

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        Soprano::Client::DBusModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        Soprano::Client::DBusModel *sipCpp;

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        Soprano::Client::DBusModel *sipCpp;

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Client::DBusModel::statementCount() : sipCpp->statementCount());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        Soprano::Client::DBusModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Statement * a0;
        Soprano::Client::DBusModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_DBusModel)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Client_DBusModel *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Client::DBusModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString * a0;
        int a0State = 0;
        const QString * a1;
        int a1State = 0;
        const Soprano::Backend * a2 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1|J8", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, sipType_Soprano_Backend, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_DBusModel(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Soprano_Client_DBusModel[] = {
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_Client_DBusModel_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_asyncCalls), meth_Soprano_Client_DBusModel_asyncCalls, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Client_DBusModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_DBusModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Client_DBusModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatement), meth_Soprano_Client_DBusModel_containsAnyStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatement), meth_Soprano_Client_DBusModel_containsStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createBlankNode), meth_Soprano_Client_DBusModel_createBlankNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Client_DBusModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Client_DBusModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQuery), meth_Soprano_Client_DBusModel_executeQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_Client_DBusModel_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContexts), meth_Soprano_Client_DBusModel_listContexts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatements), meth_Soprano_Client_DBusModel_listStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Client_DBusModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_Client_DBusModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_Client_DBusModel_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAsyncCalls), meth_Soprano_Client_DBusModel_setAsyncCalls, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_DBusModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementCount), meth_Soprano_Client_DBusModel_statementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Client_DBusModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client_DBusModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__DBusModel,
        {0}
    },
    {
        sipNameNr_DBusModel,
        {19, 255, 0},
        21, methods_Soprano_Client_DBusModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Client_DBusModel,
    0,
    init_Soprano_Client_DBusModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_DBusModel,
    0,
    0,
    0,
    release_Soprano_Client_DBusModel,
    cast_Soprano_Client_DBusModel,
    0,
    0,
    0
},
    &Soprano::Client::DBusModel::staticMetaObject,
    0,
    0
};

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

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 2914 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2917 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2920 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 2923 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 2926 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2929 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 2932 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 2935 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2938 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2941 "sipsopranopart5.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2944 "sipsopranopart5.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2947 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2950 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2953 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2956 "sipsopranopart5.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2959 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2962 "sipsopranopart5.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2965 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2968 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2971 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2974 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2977 "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
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

bool sipSoprano_StorageModel::containsStatement(const Soprano::Statement& a0) const
{
    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);

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

bool sipSoprano_StorageModel::containsAnyStatement(const Soprano::Statement& a0) const
{
    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);

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

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

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

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

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

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

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

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

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

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

    return sipVH_soprano_16(sipGILState,meth,a0);
}

Soprano::NodeIterator sipSoprano_StorageModel::listContexts() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_soprano_15(sipGILState,meth);
}

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

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

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

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

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

int sipSoprano_StorageModel::statementCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

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

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

Soprano::Error::ErrorCode sipSoprano_StorageModel::write(QTextStream& a0) const
{
    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);

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

    return sipVH_soprano_14(sipGILState,meth,a0);
}

Soprano::Node sipSoprano_StorageModel::createBlankNode()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_soprano_13(sipGILState,meth);
}

bool sipSoprano_StorageModel::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

void sipSoprano_StorageModel::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_StorageModel::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_StorageModel::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_StorageModel::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_StorageModel::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

Soprano::Error::Error sipSoprano_StorageModel::lastError() const
{
    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();

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

    return sipVH_soprano_20(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)
{
    PyObject *sipParseErr = NULL;

    {
        sipSoprano_StorageModel *sipCpp;

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &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(&sipParseErr, sipArgs, "BJ1|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(sipParseErr, sipName_StorageModel, sipName_setError, NULL);

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_StorageModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_StorageModel *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_StorageModel *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_StorageModel *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_StorageModel *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_StorageModel *sipCpp;

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

    return NULL;
}


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

    {
        Soprano::StorageModel *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageModel, sipName_isEmpty, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageModel, sipName_containsStatement, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageModel, sipName_containsAnyStatement, NULL);

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageModel, sipName_removeAllStatements, NULL);

    return NULL;
}


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

    {
        Soprano::StorageModel *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_StorageModel, sipName_backend, NULL);

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

    if (sipState & 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 *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_StorageModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_StorageModel *sipCpp = 0;

    {
        const Soprano::Backend * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_StorageModel[] = {{49, 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 sipTypeDef_soprano_Soprano_StorageModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__StorageModel,
        {0}
    },
    {
        sipNameNr_StorageModel,
        {11, 255, 0},
        13, methods_Soprano_StorageModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_StorageModel,
    0,
    init_Soprano_StorageModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_StorageModel,
    0,
    0,
    0,
    release_Soprano_StorageModel,
    cast_Soprano_StorageModel,
    0,
    0,
    0
},
    &Soprano::StorageModel::staticMetaObject,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/dbusexportmodel.sip"
#include <soprano/dbusexportmodel.h>
#line 3967 "sipsopranopart5.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 3971 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3974 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 3977 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 3980 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 3983 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 3986 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 3989 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 3992 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3995 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3998 "sipsopranopart5.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4001 "sipsopranopart5.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4004 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4007 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4010 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4013 "sipsopranopart5.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4016 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4019 "sipsopranopart5.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4022 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4025 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4028 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4031 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 4034 "sipsopranopart5.cpp"


class sipSoprano_Server_DBusExportModel : public Soprano::Server::DBusExportModel
{
public:
    sipSoprano_Server_DBusExportModel(Soprano::Model *);
    virtual ~sipSoprano_Server_DBusExportModel();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setParentModel(Soprano::Model *);
    Soprano::Model * parentModel() const;
    Soprano::Error::ErrorCode addStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeAllStatements(const Soprano::Statement&);
    Soprano::StatementIterator listStatements(const Soprano::Statement&) const;
    Soprano::NodeIterator listContexts() const;
    Soprano::QueryResultIterator executeQuery(const QString&,Soprano::Query::QueryLanguage,const QString&) const;
    bool containsStatement(const Soprano::Statement&) const;
    bool containsAnyStatement(const Soprano::Statement&) const;
    bool isEmpty() const;
    int statementCount() const;
    Soprano::Error::ErrorCode write(QTextStream&) const;
    Soprano::Node createBlankNode();
    void parentStatementsAdded();
    void parentStatementsRemoved();
    void parentStatementAdded(const Soprano::Statement&);
    void parentStatementRemoved(const Soprano::Statement&);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[26];
};

sipSoprano_Server_DBusExportModel::sipSoprano_Server_DBusExportModel(Soprano::Model *a0): Soprano::Server::DBusExportModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Server_DBusExportModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Server_DBusExportModel);
}

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

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

    return _id;
}

void *sipSoprano_Server_DBusExportModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Server_DBusExportModel,_clname)) ? this : Soprano::Server::DBusExportModel::qt_metacast(_clname);
}

void sipSoprano_Server_DBusExportModel::setParentModel(Soprano::Model *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    sipVH_soprano_19(sipGILState,meth,a0);
}

Soprano::Model * sipSoprano_Server_DBusExportModel::parentModel() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_soprano_18(sipGILState,meth);
}

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

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

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

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

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

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

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

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

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

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

    return sipVH_soprano_16(sipGILState,meth,a0);
}

Soprano::NodeIterator sipSoprano_Server_DBusExportModel::listContexts() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_soprano_15(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

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

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

bool sipSoprano_Server_DBusExportModel::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

int sipSoprano_Server_DBusExportModel::statementCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

    return sipVH_soprano_14(sipGILState,meth,a0);
}

Soprano::Node sipSoprano_Server_DBusExportModel::createBlankNode()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_soprano_13(sipGILState,meth);
}

void sipSoprano_Server_DBusExportModel::parentStatementsAdded()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Server_DBusExportModel::parentStatementsRemoved()
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

    sipVH_soprano_17(sipGILState,meth,a0);
}

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

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

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

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

    sipVH_soprano_17(sipGILState,meth,a0);
}

bool sipSoprano_Server_DBusExportModel::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

void sipSoprano_Server_DBusExportModel::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Server_DBusExportModel::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Server_DBusExportModel::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Server_DBusExportModel::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Server_DBusExportModel::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

Soprano::Error::Error sipSoprano_Server_DBusExportModel::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_soprano_20(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Server_DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Server_DBusExportModel, &sipCpp, sipType_Soprano_Error_Error, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Server_DBusExportModel, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Server_DBusExportModel, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Server_DBusExportModel, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Server_DBusExportModel, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Server_DBusExportModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Server_DBusExportModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Server_DBusExportModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Server_DBusExportModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementsAdded(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Server_DBusExportModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Server_DBusExportModel, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementsRemoved(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->registerModel(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Server_DBusExportModel)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Server_DBusExportModel *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Server::DBusExportModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        Soprano::Model * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Soprano_Server_DBusExportModel[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Server_DBusExportModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Server_DBusExportModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Server_DBusExportModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Server_DBusExportModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dbusObjectPath), meth_Soprano_Server_DBusExportModel_dbusObjectPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Server_DBusExportModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementAdded), meth_Soprano_Server_DBusExportModel_parentStatementAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementRemoved), meth_Soprano_Server_DBusExportModel_parentStatementRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsAdded), meth_Soprano_Server_DBusExportModel_parentStatementsAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsRemoved), meth_Soprano_Server_DBusExportModel_parentStatementsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Server_DBusExportModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerModel), meth_Soprano_Server_DBusExportModel_registerModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Server_DBusExportModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Server_DBusExportModel_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unregisterModel), meth_Soprano_Server_DBusExportModel_unregisterModel, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Server_DBusExportModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Server__DBusExportModel,
        {0}
    },
    {
        sipNameNr_DBusExportModel,
        {65, 255, 0},
        15, methods_Soprano_Server_DBusExportModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Server_DBusExportModel,
    0,
    init_Soprano_Server_DBusExportModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Server_DBusExportModel,
    0,
    0,
    0,
    release_Soprano_Server_DBusExportModel,
    cast_Soprano_Server_DBusExportModel,
    0,
    0,
    0
},
    &Soprano::Server::DBusExportModel::staticMetaObject,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/dbusexportiterator.sip"
#include <soprano/dbusexportiterator.h>
#line 5212 "sipsopranopart5.cpp"

#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 5216 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5219 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 5222 "sipsopranopart5.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 5225 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5228 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5231 "sipsopranopart5.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5234 "sipsopranopart5.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5237 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5240 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5243 "sipsopranopart5.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5246 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5249 "sipsopranopart5.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5252 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5255 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5258 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5261 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 5264 "sipsopranopart5.cpp"


class sipSoprano_Server_DBusExportIterator : public Soprano::Server::DBusExportIterator
{
public:
    sipSoprano_Server_DBusExportIterator(Soprano::StatementIterator,QObject *);
    sipSoprano_Server_DBusExportIterator(Soprano::NodeIterator,QObject *);
    sipSoprano_Server_DBusExportIterator(Soprano::QueryResultIterator,QObject *);
    virtual ~sipSoprano_Server_DBusExportIterator();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipSoprano_Server_DBusExportIterator::sipSoprano_Server_DBusExportIterator(Soprano::StatementIterator a0,QObject *a1): Soprano::Server::DBusExportIterator(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_Server_DBusExportIterator::sipSoprano_Server_DBusExportIterator(Soprano::NodeIterator a0,QObject *a1): Soprano::Server::DBusExportIterator(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_Server_DBusExportIterator::sipSoprano_Server_DBusExportIterator(Soprano::QueryResultIterator a0,QObject *a1): Soprano::Server::DBusExportIterator(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Server_DBusExportIterator::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Server_DBusExportIterator);
}

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

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

    return _id;
}

void *sipSoprano_Server_DBusExportIterator::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Server_DBusExportIterator,_clname)) ? this : Soprano::Server::DBusExportIterator::qt_metacast(_clname);
}

bool sipSoprano_Server_DBusExportIterator::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

void sipSoprano_Server_DBusExportIterator::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Server_DBusExportIterator::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Server_DBusExportIterator::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Server_DBusExportIterator::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Server_DBusExportIterator::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

Soprano::Error::Error sipSoprano_Server_DBusExportIterator::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_soprano_20(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Server_DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Server_DBusExportIterator, &sipCpp, sipType_Soprano_Error_Error, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Server_DBusExportIterator, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Server_DBusExportIterator, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Server_DBusExportIterator, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Server_DBusExportIterator, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Server_DBusExportIterator, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Server_DBusExportIterator, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::QueryResultIterator(sipCpp->queryResultIterator());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deleteOnClose();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        Soprano::Server::DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Soprano::Server::DBusExportIterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Soprano_Server_DBusExportIterator, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->registerIterator(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Server_DBusExportIterator)
        return ptr;

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

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Server_DBusExportIterator *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Server::DBusExportIterator *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        Soprano::StatementIterator * a0;
        QObject * a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|JH", sipType_Soprano_StatementIterator, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Server_DBusExportIterator(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Soprano::NodeIterator * a0;
        QObject * a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|JH", sipType_Soprano_NodeIterator, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Server_DBusExportIterator(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Soprano::QueryResultIterator * a0;
        QObject * a1 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9|JH", sipType_Soprano_QueryResultIterator, &a0, sipType_QObject, &a1, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Server_DBusExportIterator(*a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_Server_DBusExportIterator[] = {{129, 0, 0}, {30, 255, 1}};


static PyMethodDef methods_Soprano_Server_DBusExportIterator[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Server_DBusExportIterator_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Server_DBusExportIterator_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Server_DBusExportIterator_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Server_DBusExportIterator_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dbusObjectPath), meth_Soprano_Server_DBusExportIterator_dbusObjectPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteOnClose), meth_Soprano_Server_DBusExportIterator_deleteOnClose, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Server_DBusExportIterator_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nodeIterator), meth_Soprano_Server_DBusExportIterator_nodeIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryResultIterator), meth_Soprano_Server_DBusExportIterator_queryResultIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Server_DBusExportIterator_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerIterator), meth_Soprano_Server_DBusExportIterator_registerIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDeleteOnClose), meth_Soprano_Server_DBusExportIterator_setDeleteOnClose, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Server_DBusExportIterator_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementIterator), meth_Soprano_Server_DBusExportIterator_statementIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Server_DBusExportIterator_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unregisterIterator), meth_Soprano_Server_DBusExportIterator_unregisterIterator, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Server_DBusExportIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Server__DBusExportIterator,
        {0}
    },
    {
        sipNameNr_DBusExportIterator,
        {65, 255, 0},
        16, methods_Soprano_Server_DBusExportIterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Server_DBusExportIterator,
    0,
    init_Soprano_Server_DBusExportIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Server_DBusExportIterator,
    0,
    0,
    0,
    release_Soprano_Server_DBusExportIterator,
    cast_Soprano_Server_DBusExportIterator,
    0,
    0,
    0
},
    &Soprano::Server::DBusExportIterator::staticMetaObject,
    0,
    0
};




pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Server = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Server,
        {0}
    },
    {
        sipNameNr_Server,
        {11, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/dbusclient.sip"
#include <soprano/dbusclient.h>
#line 6246 "sipsopranopart5.cpp"

#line 41 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6250 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 6253 "sipsopranopart5.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/dbusmodel.sip"
#include <soprano/dbusmodel.h>
#line 6256 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6259 "sipsopranopart5.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 6262 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6265 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6268 "sipsopranopart5.cpp"
#line 318 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6271 "sipsopranopart5.cpp"
#line 305 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 6274 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 6277 "sipsopranopart5.cpp"
#line 38 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6280 "sipsopranopart5.cpp"
#line 43 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 6283 "sipsopranopart5.cpp"
#line 40 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 6286 "sipsopranopart5.cpp"
#line 125 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6289 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 6292 "sipsopranopart5.cpp"
#line 41 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 6295 "sipsopranopart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 6298 "sipsopranopart5.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.4.5/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 6301 "sipsopranopart5.cpp"


class sipSoprano_Client_DBusClient : public Soprano::Client::DBusClient
{
public:
    sipSoprano_Client_DBusClient(const QString&,QObject *);
    virtual ~sipSoprano_Client_DBusClient();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipSoprano_Client_DBusClient::sipSoprano_Client_DBusClient(const QString& a0,QObject *a1): Soprano::Client::DBusClient(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Client_DBusClient::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Client_DBusClient);
}

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

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

    return _id;
}

void *sipSoprano_Client_DBusClient::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Client_DBusClient,_clname)) ? this : Soprano::Client::DBusClient::qt_metacast(_clname);
}

bool sipSoprano_Client_DBusClient::event(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

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

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

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

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

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

void sipSoprano_Client_DBusClient::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Client_DBusClient::childEvent(QChildEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Client_DBusClient::customEvent(QEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Client_DBusClient::connectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

void sipSoprano_Client_DBusClient::disconnectNotify(const char *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

Soprano::Error::Error sipSoprano_Client_DBusClient::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

    return sipVH_soprano_20(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Client_DBusClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Client_DBusClient, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusClient *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Client_DBusClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Client_DBusClient, &sipCpp, sipType_QTimerEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Client_DBusClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Client_DBusClient, &sipCpp, sipType_QChildEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Client_DBusClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Client_DBusClient, &sipCpp, sipType_QEvent, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Client_DBusClient, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Client_DBusClient, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusClient *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusClient *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const Soprano::BackendSettings& a1def = Soprano::BackendSettings();
        const Soprano::BackendSettings * a1 = &a1def;
        int a1State = 0;
        Soprano::Client::DBusClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Soprano_Client_DBusClient, &sipCpp, sipType_QString,&a0, &a0State, sipType_QList_0100Soprano_BackendSetting,&a1, &a1State))
        {
            Soprano::Client::DBusModel *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createModel(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<Soprano::BackendSettings *>(a1),sipType_QList_0100Soprano_BackendSetting,a1State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Client_DBusClient, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeModel(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_DBusClient)
        return ptr;

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

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Client_DBusClient *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Client::DBusClient *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        QObject * a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_Client_DBusClient[] = {{129, 0, 0}, {30, 255, 1}};


static PyMethodDef methods_Soprano_Client_DBusClient[] = {
    {SIP_MLNAME_CAST(sipName_allModels), meth_Soprano_Client_DBusClient_allModels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Client_DBusClient_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_DBusClient_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Client_DBusClient_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_Client_DBusClient_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Client_DBusClient_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Client_DBusClient_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_Client_DBusClient_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Client_DBusClient_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeModel), meth_Soprano_Client_DBusClient_removeModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_DBusClient_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Client_DBusClient_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client_DBusClient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__DBusClient,
        {0}
    },
    {
        sipNameNr_DBusClient,
        {19, 255, 0},
        12, methods_Soprano_Client_DBusClient,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Client_DBusClient,
    0,
    init_Soprano_Client_DBusClient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_DBusClient,
    0,
    0,
    0,
    release_Soprano_Client_DBusClient,
    cast_Soprano_Client_DBusClient,
    0,
    0,
    0
},
    &Soprano::Client::DBusClient::staticMetaObject,
    0,
    0
};




pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Client,
        {0}
    },
    {
        sipNameNr_Client,
        {11, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
