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

#include "sipAPIsoprano.h"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/mutexmodel.sip"
#include <soprano/mutexmodel.h>
#line 12 "sipsopranopart1.cpp"

#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 16 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 19 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 25 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 28 "sipsopranopart1.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 49 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 52 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 55 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 58 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 61 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 64 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 67 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 70 "sipsopranopart1.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 73 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 76 "sipsopranopart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 79 "sipsopranopart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 82 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 85 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 88 "sipsopranopart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 119 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 122 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 125 "sipsopranopart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 128 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 131 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 134 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 137 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 140 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 143 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 146 "sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 149 "sipsopranopart1.cpp"


class sipSoprano_Util_MutexModel : public Soprano::Util::MutexModel
{
public:
    sipSoprano_Util_MutexModel(Soprano::Util::MutexModel::ProtectionMode,Soprano::Model *);
    virtual ~sipSoprano_Util_MutexModel();

    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_Util_MutexModel(const sipSoprano_Util_MutexModel &);
    sipSoprano_Util_MutexModel &operator = (const sipSoprano_Util_MutexModel &);

    char sipPyMethods[26];
};

sipSoprano_Util_MutexModel::sipSoprano_Util_MutexModel(Soprano::Util::MutexModel::ProtectionMode a0,Soprano::Model *a1): Soprano::Util::MutexModel(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Util_MutexModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Util_MutexModel);
}

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

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

    return _id;
}

void *sipSoprano_Util_MutexModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Util_MutexModel,_clname)) ? this : Soprano::Util::MutexModel::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_soprano_22(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_21(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Util::MutexModel::addStatement(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Util::MutexModel::removeStatement(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Util::MutexModel::removeAllStatements(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Util::MutexModel::listStatements(a0);

    return sipVH_soprano_19(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Util::MutexModel::listContexts();

    return sipVH_soprano_18(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Util::MutexModel::containsStatement(a0);

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Util::MutexModel::containsAnyStatement(a0);

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Util::MutexModel::isEmpty();

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Util::MutexModel::statementCount();

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_16(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_15(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_soprano_20(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_soprano_20(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Util_MutexModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementAdded(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Util_MutexModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementRemoved(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::MutexModel::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(sipArgsParsed,sipName_MutexModel,sipName_addStatement);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Util::MutexModel::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(sipArgsParsed,sipName_MutexModel,sipName_removeStatement);

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator((sipSelfWasArg ? sipCpp->Soprano::Util::MutexModel::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(sipArgsParsed,sipName_MutexModel,sipName_listStatements);

    return NULL;
}


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

    {
        Soprano::Util::MutexModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::NodeIterator((sipSelfWasArg ? sipCpp->Soprano::Util::MutexModel::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(sipArgsParsed,sipName_MutexModel,sipName_listContexts);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::QueryResultIterator((sipSelfWasArg ? sipCpp->Soprano::Util::MutexModel::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(sipArgsParsed,sipName_MutexModel,sipName_executeQuery);

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::MutexModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::MutexModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_MutexModel)
        return ptr;

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Util_MutexModel *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Util::MutexModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        Soprano::Util::MutexModel::ProtectionMode a0;
        Soprano::Model * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"E|J8",sipType_Soprano_Util_MutexModel_ProtectionMode,&a0,sipType_Soprano_Model,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Util_MutexModel(a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Util_MutexModel[] = {
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_Util_MutexModel_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Util_MutexModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Util_MutexModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Util_MutexModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatement), meth_Soprano_Util_MutexModel_containsAnyStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatement), meth_Soprano_Util_MutexModel_containsStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Util_MutexModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Util_MutexModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQuery), meth_Soprano_Util_MutexModel_executeQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_Util_MutexModel_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContexts), meth_Soprano_Util_MutexModel_listContexts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatements), meth_Soprano_Util_MutexModel_listStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementAdded), meth_Soprano_Util_MutexModel_parentStatementAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementRemoved), meth_Soprano_Util_MutexModel_parentStatementRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsAdded), meth_Soprano_Util_MutexModel_parentStatementsAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsRemoved), meth_Soprano_Util_MutexModel_parentStatementsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Util_MutexModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_Util_MutexModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_Util_MutexModel_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Util_MutexModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementCount), meth_Soprano_Util_MutexModel_statementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Util_MutexModel_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Soprano_Util_MutexModel[] = {
    {sipName_PlainMultiThreading, Soprano::Util::MutexModel::PlainMultiThreading, 83},
    {sipName_ReadWriteMultiThreading, Soprano::Util::MutexModel::ReadWriteMultiThreading, 83},
    {sipName_ReadWriteSingleThreading, Soprano::Util::MutexModel::ReadWriteSingleThreading, 83},
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Util_MutexModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Util__MutexModel,
        {0}
    },
    sipNameNr_MutexModel,
    -1,
    -1,
    {77, 255, 0},
    supers_Soprano_Util_MutexModel,
    0,
    22, methods_Soprano_Util_MutexModel,
    3, enummembers_Soprano_Util_MutexModel,
    0, 0,
    init_Soprano_Util_MutexModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Util_MutexModel,
    release_Soprano_Util_MutexModel,
    cast_Soprano_Util_MutexModel,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Util::MutexModel::staticMetaObject,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/dummymodel.sip"
#include <soprano/dummymodel.h>
#line 1545 "sipsopranopart1.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 1549 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 1552 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 1555 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1558 "sipsopranopart1.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1579 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 1582 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 1585 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 1588 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 1591 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 1594 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 1597 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 1600 "sipsopranopart1.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 1603 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1606 "sipsopranopart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1609 "sipsopranopart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1612 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1615 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1618 "sipsopranopart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1649 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1652 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1655 "sipsopranopart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1658 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1661 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1664 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1667 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1670 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1673 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1676 "sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 1679 "sipsopranopart1.cpp"


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

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[20];
};

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

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

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

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

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

    return _id;
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_19(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_18(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_16(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_15(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Util_DummyModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_DummyModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Util_DummyModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Util_DummyModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Util_DummyModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_DummyModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_DummyModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::DummyModel *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::QueryResultIterator((sipSelfWasArg ? sipCpp->Soprano::Util::DummyModel::executeQuery(*a0,a1,*a2) : sipCpp->executeQuery(*a0,a1,*a2)));
            Py_END_ALLOW_THREADS

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

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::DummyModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::DummyModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::DummyModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_DummyModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


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


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

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/asyncresult.sip"
#include <soprano/asyncresult.h>
#line 2976 "sipsopranopart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2980 "sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2983 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2986 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2989 "sipsopranopart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2992 "sipsopranopart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2995 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2998 "sipsopranopart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 3029 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 3032 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3035 "sipsopranopart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3038 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3041 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3044 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 3047 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3050 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3053 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3056 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3059 "sipsopranopart1.cpp"


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::Util::AsyncResult::createResult();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->errorCode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Util_AsyncResult,&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(sipArgsParsed,sipName_AsyncResult,sipName_statementIterator);

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Util_AsyncResult,&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(sipArgsParsed,sipName_AsyncResult,sipName_nodeIterator);

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Util_AsyncResult,&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(sipArgsParsed,sipName_AsyncResult,sipName_queryResultIterator);

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QVariant * a0;
        int a0State = 0;
        const Soprano::Error::Error * a1;
        Soprano::Util::AsyncResult *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J9",&sipSelf,sipType_Soprano_Util_AsyncResult,&sipCpp,sipType_QVariant,&a0,&a0State,sipType_Soprano_Error_Error,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setResult(*a0,*a1);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_AsyncResult)
        return ptr;

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

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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Util::AsyncResult *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Soprano_Util_AsyncResult[] = {
    {SIP_MLNAME_CAST(sipName_createResult), meth_Soprano_Util_AsyncResult_createResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_errorCode), meth_Soprano_Util_AsyncResult_errorCode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_node), meth_Soprano_Util_AsyncResult_node, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nodeIterator), meth_Soprano_Util_AsyncResult_nodeIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryResultIterator), meth_Soprano_Util_AsyncResult_queryResultIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setResult), meth_Soprano_Util_AsyncResult_setResult, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementIterator), meth_Soprano_Util_AsyncResult_statementIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_Soprano_Util_AsyncResult_value, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Soprano_Util_AsyncResult[] = {
    {"resultReady(Soprano::Util::AsyncResult *)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Util_AsyncResult = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Util__AsyncResult,
        {0}
    },
    sipNameNr_AsyncResult,
    -1,
    -1,
    {77, 255, 0},
    supers_Soprano_Util_AsyncResult,
    0,
    8, methods_Soprano_Util_AsyncResult,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Util_AsyncResult,
    release_Soprano_Util_AsyncResult,
    cast_Soprano_Util_AsyncResult,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Util::AsyncResult::staticMetaObject,
    0,
    pyqt4_signals_Soprano_Util_AsyncResult
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/asyncmodel.sip"
#include <soprano/asyncmodel.h>
#line 3391 "sipsopranopart1.cpp"

#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 3395 "sipsopranopart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/asyncresult.sip"
#include <soprano/asyncresult.h>
#line 3398 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 3401 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 3404 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3407 "sipsopranopart1.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3428 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 3431 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 3434 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 3437 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 3440 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 3443 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 3446 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 3449 "sipsopranopart1.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 3452 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 3455 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3458 "sipsopranopart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3461 "sipsopranopart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3464 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3467 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3470 "sipsopranopart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 3501 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 3504 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3507 "sipsopranopart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3510 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3513 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 3516 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3519 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3522 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3525 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3528 "sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 3531 "sipsopranopart1.cpp"


class sipSoprano_Util_AsyncModel : public Soprano::Util::AsyncModel
{
public:
    sipSoprano_Util_AsyncModel(Soprano::Model *);
    virtual ~sipSoprano_Util_AsyncModel();

    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_Util_AsyncModel(const sipSoprano_Util_AsyncModel &);
    sipSoprano_Util_AsyncModel &operator = (const sipSoprano_Util_AsyncModel &);

    char sipPyMethods[26];
};

sipSoprano_Util_AsyncModel::sipSoprano_Util_AsyncModel(Soprano::Model *a0): Soprano::Util::AsyncModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Util_AsyncModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Util_AsyncModel);
}

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

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

    return _id;
}

void *sipSoprano_Util_AsyncModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Util_AsyncModel,_clname)) ? this : Soprano::Util::AsyncModel::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_soprano_22(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_21(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_19(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_18(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_16(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_15(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_soprano_20(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    sipVH_soprano_20(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementAdded(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_parentStatementRemoved(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel::AsyncModelMode a0;
        Soprano::Util::AsyncModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BE",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_Soprano_Util_AsyncModel_AsyncModelMode,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMode(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp))
        {
            Soprano::Util::AsyncModel::AsyncModelMode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->mode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Util_AsyncModel_AsyncModelMode);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_Soprano_Node,&a0,sipType_Soprano_Node,&a1,sipType_Soprano_Node,&a2,sipType_Soprano_Node,&a3))
        {
            Soprano::Util::AsyncResult *sipRes;

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_QList_0200Soprano_Statement,&a0,&a0State))
        {
            Soprano::Util::AsyncResult *sipRes;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_Soprano_Node,&a0,sipType_Soprano_Node,&a1,sipType_Soprano_Node,&a2,sipType_Soprano_Node,&a3))
        {
            Soprano::Util::AsyncResult *sipRes;

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_QList_0200Soprano_Statement,&a0,&a0State))
        {
            Soprano::Util::AsyncResult *sipRes;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_Soprano_Node,&a0,sipType_Soprano_Node,&a1,sipType_Soprano_Node,&a2,sipType_Soprano_Node,&a3))
        {
            Soprano::Util::AsyncResult *sipRes;

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp))
        {
            Soprano::Util::AsyncResult *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmptyAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp))
        {
            Soprano::Util::AsyncResult *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->statementCountAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_Soprano_Node,&a0,sipType_Soprano_Node,&a1,sipType_Soprano_Node,&a2,sipType_Soprano_Node,&a3))
        {
            Soprano::Util::AsyncResult *sipRes;

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

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

    {
        Soprano::Util::AsyncModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp))
        {
            Soprano::Util::AsyncResult *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listStatementsAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp))
        {
            Soprano::Util::AsyncResult *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listContextsAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1E|J1",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_QString,&a0,&a0State,sipType_Soprano_Query_QueryLanguage,&a1,sipType_QString,&a2,&a2State))
        {
            Soprano::Util::AsyncResult *sipRes;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_Soprano_Node,&a0,sipType_Soprano_Node,&a1,sipType_Soprano_Node,&a2,sipType_Soprano_Node,&a3))
        {
            Soprano::Util::AsyncResult *sipRes;

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

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

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

    return NULL;
}


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

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

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

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

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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp,sipType_Soprano_Node,&a0,sipType_Soprano_Node,&a1,sipType_Soprano_Node,&a2,sipType_Soprano_Node,&a3))
        {
            Soprano::Util::AsyncResult *sipRes;

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Util_AsyncModel,&sipCpp))
        {
            Soprano::Util::AsyncResult *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createBlankNodeAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_AsyncModel)
        return ptr;

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Util_AsyncModel *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Util::AsyncModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Util_AsyncModel[] = {
    {SIP_MLNAME_CAST(sipName_addStatementAsync), meth_Soprano_Util_AsyncModel_addStatementAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addStatementsAsync), meth_Soprano_Util_AsyncModel_addStatementsAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Util_AsyncModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Util_AsyncModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Util_AsyncModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatementAsync), meth_Soprano_Util_AsyncModel_containsAnyStatementAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatementAsync), meth_Soprano_Util_AsyncModel_containsStatementAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createBlankNodeAsync), meth_Soprano_Util_AsyncModel_createBlankNodeAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Util_AsyncModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Util_AsyncModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQueryAsync), meth_Soprano_Util_AsyncModel_executeQueryAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmptyAsync), meth_Soprano_Util_AsyncModel_isEmptyAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContextsAsync), meth_Soprano_Util_AsyncModel_listContextsAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatementsAsync), meth_Soprano_Util_AsyncModel_listStatementsAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mode), meth_Soprano_Util_AsyncModel_mode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementAdded), meth_Soprano_Util_AsyncModel_parentStatementAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementRemoved), meth_Soprano_Util_AsyncModel_parentStatementRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsAdded), meth_Soprano_Util_AsyncModel_parentStatementsAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsRemoved), meth_Soprano_Util_AsyncModel_parentStatementsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Util_AsyncModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatementsAsync), meth_Soprano_Util_AsyncModel_removeAllStatementsAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatementAsync), meth_Soprano_Util_AsyncModel_removeStatementAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatementsAsync), meth_Soprano_Util_AsyncModel_removeStatementsAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Util_AsyncModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMode), meth_Soprano_Util_AsyncModel_setMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementCountAsync), meth_Soprano_Util_AsyncModel_statementCountAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Util_AsyncModel_timerEvent, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Soprano_Util_AsyncModel[] = {
    {sipName_MultiThreaded, Soprano::Util::AsyncModel::MultiThreaded, 79},
    {sipName_SingleThreaded, Soprano::Util::AsyncModel::SingleThreaded, 79},
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Util_AsyncModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Util__AsyncModel,
        {0}
    },
    sipNameNr_AsyncModel,
    -1,
    -1,
    {77, 255, 0},
    supers_Soprano_Util_AsyncModel,
    0,
    27, methods_Soprano_Util_AsyncModel,
    2, enummembers_Soprano_Util_AsyncModel,
    0, 0,
    init_Soprano_Util_AsyncModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Util_AsyncModel,
    release_Soprano_Util_AsyncModel,
    cast_Soprano_Util_AsyncModel,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Util::AsyncModel::staticMetaObject,
    0,
    0
};




pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Util = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Util,
        {0}
    },
    sipNameNr_Util,
    -1,
    -1,
    {10, 255, 0},
    0,
    0,
    0, 0,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/tcpclient.sip"
#include <soprano/tcpclient.h>
#include <soprano/servercore.h>
#line 5247 "sipsopranopart1.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5251 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5254 "sipsopranopart1.cpp"
#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/model.sip"
#include <soprano/model.h>
#line 5257 "sipsopranopart1.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5278 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5281 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 5284 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 5287 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 5290 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 5293 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 5296 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 5299 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 5302 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 5305 "sipsopranopart1.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5308 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 5311 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5314 "sipsopranopart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5317 "sipsopranopart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5320 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5323 "sipsopranopart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 5354 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 5357 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5360 "sipsopranopart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5363 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5366 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 5369 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5372 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5375 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5378 "sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 5381 "sipsopranopart1.cpp"


class sipSoprano_Client_TcpClient : public Soprano::Client::TcpClient
{
public:
    sipSoprano_Client_TcpClient(QObject *);
    virtual ~sipSoprano_Client_TcpClient();

    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_TcpClient(const sipSoprano_Client_TcpClient &);
    sipSoprano_Client_TcpClient &operator = (const sipSoprano_Client_TcpClient &);

    char sipPyMethods[8];
};

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

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

const QMetaObject *sipSoprano_Client_TcpClient::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Client_TcpClient);
}

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

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

    return _id;
}

void *sipSoprano_Client_TcpClient::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Client_TcpClient,_clname)) ? this : Soprano::Client::TcpClient::qt_metacast(_clname);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QHostAddress& a0def = QHostAddress::LocalHost;
        const QHostAddress * a0 = &a0def;
        int a1 = Soprano::Server::ServerCore::DEFAULT_PORT;
        Soprano::Client::TcpClient *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J9i",&sipSelf,sipType_Soprano_Client_TcpClient,&sipCpp,sipType_QHostAddress,&a0,&a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::TcpClient *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isConnected();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Client_TcpClient,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeModel(*a0);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_TcpClient)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_TcpClient(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Client_TcpClient[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Client_TcpClient_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_TcpClient_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connect), meth_Soprano_Client_TcpClient_connect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Client_TcpClient_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_Client_TcpClient_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Client_TcpClient_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnect), meth_Soprano_Client_TcpClient_disconnect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Client_TcpClient_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isConnected), meth_Soprano_Client_TcpClient_isConnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Client_TcpClient_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeModel), meth_Soprano_Client_TcpClient_removeModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_TcpClient_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Client_TcpClient_timerEvent, METH_VARARGS, NULL}
};


extern "C" {static PyObject *varget_Soprano_Client_TcpClient_DEFAULT_PORT(void *, PyObject *);}
static PyObject *varget_Soprano_Client_TcpClient_DEFAULT_PORT(void *sipSelf, PyObject *)
{
    quint16 sipVal;
    Soprano::Client::TcpClient *sipCpp = reinterpret_cast<Soprano::Client::TcpClient *>(sipSelf);

    sipVal = sipCpp->DEFAULT_PORT;

    return PyLong_FromUnsignedLong(sipVal);
}

sipVariableDef variables_Soprano_Client_TcpClient[] = {
    {sipName_DEFAULT_PORT, varget_Soprano_Client_TcpClient_DEFAULT_PORT, NULL, 0},
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Client_TcpClient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__TcpClient,
        {0}
    },
    sipNameNr_TcpClient,
    -1,
    -1,
    {18, 255, 0},
    supers_Soprano_Client_TcpClient,
    0,
    13, methods_Soprano_Client_TcpClient,
    0, 0,
    1, variables_Soprano_Client_TcpClient,
    init_Soprano_Client_TcpClient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_TcpClient,
    release_Soprano_Client_TcpClient,
    cast_Soprano_Client_TcpClient,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Client::TcpClient::staticMetaObject,
    0,
    0
};


#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 6197 "sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 6200 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6203 "sipsopranopart1.cpp"


class sipSoprano_StatementIteratorBackendBase : public Soprano::StatementIteratorBackendBase
{
public:
    sipSoprano_StatementIteratorBackendBase();
    virtual ~sipSoprano_StatementIteratorBackendBase();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool next();
    Soprano::Statement current() const;
    void close();
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[4];
};

sipSoprano_StatementIteratorBackendBase::sipSoprano_StatementIteratorBackendBase(): Soprano::StatementIteratorBackendBase(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

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

Soprano::Statement sipSoprano_StatementIteratorBackendBase::current() const
{
    extern Soprano::Statement sipVH_soprano_2(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_2(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return;

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        sipSoprano_StatementIteratorBackendBase *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::StatementIteratorBackendBase *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_StatementIteratorBackendBase, sipName_next);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->next();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::StatementIteratorBackendBase *sipCpp;

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::StatementIteratorBackendBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_StatementIteratorBackendBase,&sipCpp))
        {
            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_StatementIteratorBackendBase, sipName_close);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->close();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementIteratorBackendBase,sipName_close);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_StatementIteratorBackendBase(void *, const sipTypeDef *);}
static void *cast_Soprano_StatementIteratorBackendBase(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Soprano_StatementIteratorBackendBase)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Error_ErrorCache)->ctd_cast((Soprano::Error::ErrorCache *)(Soprano::StatementIteratorBackendBase *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_StatementIteratorBackendBase(void *, int);}
static void release_Soprano_StatementIteratorBackendBase(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_StatementIteratorBackendBase *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::StatementIteratorBackendBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_StatementIteratorBackendBase(sipSimpleWrapper *);}
static void dealloc_Soprano_StatementIteratorBackendBase(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_StatementIteratorBackendBase *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_StatementIteratorBackendBase(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Soprano_StatementIteratorBackendBase(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_StatementIteratorBackendBase(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipSoprano_StatementIteratorBackendBase *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_StatementIteratorBackendBase();
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Soprano_StatementIteratorBackendBase[] = {{29, 255, 1}};


static PyMethodDef methods_Soprano_StatementIteratorBackendBase[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_StatementIteratorBackendBase_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Soprano_StatementIteratorBackendBase_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_StatementIteratorBackendBase_current, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_StatementIteratorBackendBase_next, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_StatementIteratorBackendBase_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_StatementIteratorBackendBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__StatementIteratorBackendBase,
        {0}
    },
    sipNameNr_StatementIteratorBackendBase,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_StatementIteratorBackendBase,
    0,
    5, methods_Soprano_StatementIteratorBackendBase,
    0, 0,
    0, 0,
    init_Soprano_StatementIteratorBackendBase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_StatementIteratorBackendBase,
    release_Soprano_StatementIteratorBackendBase,
    cast_Soprano_StatementIteratorBackendBase,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};


#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6644 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 6647 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 6650 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 6653 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 6656 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 6659 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 6662 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 6665 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 6668 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 6671 "sipsopranopart1.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 6674 "sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 6677 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6680 "sipsopranopart1.cpp"


extern "C" {static PyObject *meth_Soprano_StatementIteratorBase_close(PyObject *, PyObject *);}
static PyObject *meth_Soprano_StatementIteratorBase_close(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::StatementIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_StatementIteratorBase,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->close();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementIteratorBase,sipName_close);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_StatementIteratorBase_next(PyObject *, PyObject *);}
static PyObject *meth_Soprano_StatementIteratorBase_next(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::StatementIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_StatementIteratorBase,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->next();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementIteratorBase,sipName_next);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_StatementIteratorBase_current(PyObject *, PyObject *);}
static PyObject *meth_Soprano_StatementIteratorBase_current(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::StatementIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_StatementIteratorBase,&sipCpp))
        {
            Soprano::Statement *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Statement(sipCpp->current());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_Statement,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementIteratorBase,sipName_current);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_StatementIteratorBase_isValid(PyObject *, PyObject *);}
static PyObject *meth_Soprano_StatementIteratorBase_isValid(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::StatementIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_StatementIteratorBase,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementIteratorBase,sipName_isValid);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_StatementIteratorBase_allElements(PyObject *, PyObject *);}
static PyObject *meth_Soprano_StatementIteratorBase_allElements(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::StatementIteratorBase *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_StatementIteratorBase,&sipCpp))
        {
            QList<Soprano::Statement> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Statement>(sipCpp->allElements());
            Py_END_ALLOW_THREADS

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200Soprano_Statement,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_StatementIteratorBase,sipName_allElements);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_StatementIteratorBase(void *, const sipTypeDef *);}
static void *cast_Soprano_StatementIteratorBase(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Soprano_StatementIteratorBase)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Error_ErrorCache)->ctd_cast((Soprano::Error::ErrorCache *)(Soprano::StatementIteratorBase *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_StatementIteratorBase(void *, int);}
static void release_Soprano_StatementIteratorBase(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Soprano::StatementIteratorBase *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_StatementIteratorBase(sipSimpleWrapper *);}
static void dealloc_Soprano_StatementIteratorBase(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_StatementIteratorBase(sipSelf->u.cppPtr,0);
    }
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Soprano_StatementIteratorBase[] = {{29, 255, 1}};


static PyMethodDef methods_Soprano_StatementIteratorBase[] = {
    {SIP_MLNAME_CAST(sipName_allElements), meth_Soprano_StatementIteratorBase_allElements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Soprano_StatementIteratorBase_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_current), meth_Soprano_StatementIteratorBase_current, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_StatementIteratorBase_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_StatementIteratorBase_next, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_StatementIteratorBase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__StatementIteratorBase,
        {0}
    },
    sipNameNr_StatementIteratorBase,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_StatementIteratorBase,
    0,
    5, methods_Soprano_StatementIteratorBase,
    0, 0,
    0, 0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_StatementIteratorBase,
    release_Soprano_StatementIteratorBase,
    cast_Soprano_StatementIteratorBase,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 6918 "sipsopranopart1.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 6922 "sipsopranopart1.cpp"


extern "C" {static PyObject *meth_Soprano_Statement_matches(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_matches(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Statement * a0;
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Statement,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->matches(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_matches);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Statement_isValid(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_isValid(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Statement,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_isValid);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Statement_subject(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_subject(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Statement,&sipCpp))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->subject());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_subject);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Statement_predicate(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_predicate(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Statement,&sipCpp))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->predicate());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_predicate);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Statement_object(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_object(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Statement,&sipCpp))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->object());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_object);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Statement_context(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_context(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Statement,&sipCpp))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(sipCpp->context());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_context);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Statement_setSubject(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_setSubject(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Node * a0;
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Statement,&sipCpp,sipType_Soprano_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSubject(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_setSubject);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Statement_setPredicate(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_setPredicate(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Node * a0;
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Statement,&sipCpp,sipType_Soprano_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPredicate(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_setPredicate);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Statement_setObject(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_setObject(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Node * a0;
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Statement,&sipCpp,sipType_Soprano_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setObject(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_setObject);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Statement_setContext(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Statement_setContext(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Node * a0;
        Soprano::Statement *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Statement,&sipCpp,sipType_Soprano_Node,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContext(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Statement,sipName_setContext);

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_Statement___ne__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_Statement___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Statement *sipCpp = reinterpret_cast<Soprano::Statement *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Statement));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::Statement * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_Statement,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::Statement::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,ne_slot,sipType_Soprano_Statement,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_Statement___eq__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_Statement___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Statement *sipCpp = reinterpret_cast<Soprano::Statement *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Statement));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        const Soprano::Statement * a0;

        if (sipParseArgs(&sipArgsParsed,sipArg,"1J9",sipType_Soprano_Statement,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::Statement::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    return sipPySlotExtend(&sipModuleAPI_soprano,eq_slot,sipType_Soprano_Statement,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_Statement(void *, const sipTypeDef *);}
static void *cast_Soprano_Statement(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_Soprano_Statement)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_Statement(void *, int);}
static void release_Soprano_Statement(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Soprano::Statement *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_Statement(void *, const void*);}
static void assign_Soprano_Statement(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<Soprano::Statement *>(sipDst) = *reinterpret_cast<const Soprano::Statement *>(sipSrc);
}


extern "C" {static void dealloc_Soprano_Statement(sipSimpleWrapper *);}
static void dealloc_Soprano_Statement(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Statement(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_Soprano_Statement(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_Statement(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    Soprano::Statement *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Statement();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Soprano::Node * a0;
        const Soprano::Node * a1;
        const Soprano::Node * a2;
        const Soprano::Node& a3def = Soprano::Node();
        const Soprano::Node * a3 = &a3def;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9J9J9|J9",sipType_Soprano_Node,&a0,sipType_Soprano_Node,&a1,sipType_Soprano_Node,&a2,sipType_Soprano_Node,&a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Statement(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const Soprano::Statement * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_Soprano_Statement,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Statement(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_Statement[] = {
    {(void *)slot_Soprano_Statement___ne__, ne_slot},
    {(void *)slot_Soprano_Statement___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Soprano_Statement[] = {
    {SIP_MLNAME_CAST(sipName_context), meth_Soprano_Statement_context, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_Statement_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_matches), meth_Soprano_Statement_matches, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_object), meth_Soprano_Statement_object, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_predicate), meth_Soprano_Statement_predicate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContext), meth_Soprano_Statement_setContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setObject), meth_Soprano_Statement_setObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPredicate), meth_Soprano_Statement_setPredicate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSubject), meth_Soprano_Statement_setSubject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subject), meth_Soprano_Statement_subject, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Statement = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Statement,
        {0}
    },
    sipNameNr_Statement,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    slots_Soprano_Statement,
    10, methods_Soprano_Statement,
    0, 0,
    0, 0,
    init_Soprano_Statement,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Statement,
    release_Soprano_Statement,
    cast_Soprano_Statement,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_Statement,
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/sparqlmodel.sip"
#include <soprano/sparqlmodel.h>
#line 7410 "sipsopranopart1.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7414 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/node.sip"
#include <soprano/node.h>
#line 7417 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 7420 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 7423 "sipsopranopart1.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 123 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 194 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/pluginmanager.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7444 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 7447 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 7450 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 7453 "sipsopranopart1.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 7456 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 7459 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 7462 "sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/parser.sip"
#include <soprano/parser.h>
#line 7465 "sipsopranopart1.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 7468 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7471 "sipsopranopart1.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7474 "sipsopranopart1.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 7477 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 7480 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 7483 "sipsopranopart1.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 7514 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 7517 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 7520 "sipsopranopart1.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 7523 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 7526 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 7529 "sipsopranopart1.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 7532 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 7535 "sipsopranopart1.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 7538 "sipsopranopart1.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 7541 "sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/error.sip"
#include <soprano/error.h>
#line 7544 "sipsopranopart1.cpp"


class sipSoprano_Client_SparqlModel : public Soprano::Client::SparqlModel
{
public:
    sipSoprano_Client_SparqlModel(const QString&,quint16,const QString&,const QString&);
    virtual ~sipSoprano_Client_SparqlModel();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::Error::ErrorCode addStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeStatement(const Soprano::Statement&);
    Soprano::Error::ErrorCode removeAllStatements(const Soprano::Statement&);
    Soprano::StatementIterator listStatements(const Soprano::Statement&) const;
    Soprano::NodeIterator listContexts() const;
    Soprano::QueryResultIterator executeQuery(const QString&,Soprano::Query::QueryLanguage,const QString&) const;
    bool containsAnyStatement(const Soprano::Statement&) const;
    bool containsStatement(const Soprano::Statement&) const;
    bool isEmpty() const;
    int statementCount() const;
    Soprano::Error::ErrorCode write(QTextStream&) const;
    Soprano::Node createBlankNode();
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSoprano_Client_SparqlModel(const sipSoprano_Client_SparqlModel &);
    sipSoprano_Client_SparqlModel &operator = (const sipSoprano_Client_SparqlModel &);

    char sipPyMethods[20];
};

sipSoprano_Client_SparqlModel::sipSoprano_Client_SparqlModel(const QString& a0,quint16 a1,const QString& a2,const QString& a3): Soprano::Client::SparqlModel(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_Client_SparqlModel::~sipSoprano_Client_SparqlModel()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipSoprano_Client_SparqlModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Client_SparqlModel);
}

int sipSoprano_Client_SparqlModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = Soprano::Client::SparqlModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_soprano_qt_metacall(sipPySelf,sipType_Soprano_Client_SparqlModel,_c,_id,_a);

    return _id;
}

void *sipSoprano_Client_SparqlModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Client_SparqlModel,_clname)) ? this : Soprano::Client::SparqlModel::qt_metacast(_clname);
}

Soprano::Error::ErrorCode sipSoprano_Client_SparqlModel::addStatement(const Soprano::Statement& a0)
{
    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_addStatement);

    if (!meth)
        return Soprano::Client::SparqlModel::addStatement(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

Soprano::Error::ErrorCode sipSoprano_Client_SparqlModel::removeStatement(const Soprano::Statement& a0)
{
    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_removeStatement);

    if (!meth)
        return Soprano::Client::SparqlModel::removeStatement(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

Soprano::Error::ErrorCode sipSoprano_Client_SparqlModel::removeAllStatements(const Soprano::Statement& a0)
{
    extern Soprano::Error::ErrorCode sipVH_soprano_0(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_removeAllStatements);

    if (!meth)
        return Soprano::Client::SparqlModel::removeAllStatements(a0);

    return sipVH_soprano_0(sipGILState,meth,a0);
}

Soprano::StatementIterator sipSoprano_Client_SparqlModel::listStatements(const Soprano::Statement& a0) const
{
    extern Soprano::StatementIterator sipVH_soprano_19(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_listStatements);

    if (!meth)
        return Soprano::Client::SparqlModel::listStatements(a0);

    return sipVH_soprano_19(sipGILState,meth,a0);
}

Soprano::NodeIterator sipSoprano_Client_SparqlModel::listContexts() const
{
    extern Soprano::NodeIterator sipVH_soprano_18(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_listContexts);

    if (!meth)
        return Soprano::Client::SparqlModel::listContexts();

    return sipVH_soprano_18(sipGILState,meth);
}

Soprano::QueryResultIterator sipSoprano_Client_SparqlModel::executeQuery(const QString& a0,Soprano::Query::QueryLanguage a1,const QString& a2) const
{
    extern Soprano::QueryResultIterator sipVH_soprano_17(sip_gilstate_t,PyObject *,const QString&,Soprano::Query::QueryLanguage,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,sipName_SparqlModel,sipName_executeQuery);

    if (!meth)
        return Soprano::QueryResultIterator();

    return sipVH_soprano_17(sipGILState,meth,a0,a1,a2);
}

bool sipSoprano_Client_SparqlModel::containsAnyStatement(const Soprano::Statement& a0) const
{
    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_containsAnyStatement);

    if (!meth)
        return Soprano::Client::SparqlModel::containsAnyStatement(a0);

    return sipVH_soprano_1(sipGILState,meth,a0);
}

bool sipSoprano_Client_SparqlModel::containsStatement(const Soprano::Statement& a0) const
{
    extern bool sipVH_soprano_1(sip_gilstate_t,PyObject *,const Soprano::Statement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_containsStatement);

    if (!meth)
        return Soprano::Client::SparqlModel::containsStatement(a0);

    return sipVH_soprano_1(sipGILState,meth,a0);
}

bool sipSoprano_Client_SparqlModel::isEmpty() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_isEmpty);

    if (!meth)
        return Soprano::Client::SparqlModel::isEmpty();

    return ((sipVH_QtCore_1)(sipModuleAPI_soprano_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

int sipSoprano_Client_SparqlModel::statementCount() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_statementCount);

    if (!meth)
        return Soprano::Client::SparqlModel::statementCount();

    return ((sipVH_QtCore_8)(sipModuleAPI_soprano_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

Soprano::Error::ErrorCode sipSoprano_Client_SparqlModel::write(QTextStream& a0) const
{
    extern Soprano::Error::ErrorCode sipVH_soprano_16(sip_gilstate_t,PyObject *,QTextStream&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_write);

    if (!meth)
        return Soprano::Model::write(a0);

    return sipVH_soprano_16(sipGILState,meth,a0);
}

Soprano::Node sipSoprano_Client_SparqlModel::createBlankNode()
{
    extern Soprano::Node sipVH_soprano_15(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_createBlankNode);

    if (!meth)
        return Soprano::Client::SparqlModel::createBlankNode();

    return sipVH_soprano_15(sipGILState,meth);
}

bool sipSoprano_Client_SparqlModel::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_soprano_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipSoprano_Client_SparqlModel::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_soprano_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipSoprano_Client_SparqlModel::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_soprano_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipSoprano_Client_SparqlModel::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_soprano_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipSoprano_Client_SparqlModel::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_soprano_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipSoprano_Client_SparqlModel::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipSoprano_Client_SparqlModel::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_soprano_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

Soprano::Error::Error sipSoprano_Client_SparqlModel::lastError() const
{
    extern Soprano::Error::Error sipVH_soprano_26(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_lastError);

    if (!meth)
        return Soprano::Error::ErrorCache::lastError();

    return sipVH_soprano_26(sipGILState,meth);
}

void sipSoprano_Client_SparqlModel::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

void sipSoprano_Client_SparqlModel::sipProtect_setError(const Soprano::Error::Error& a0) const
{
    Soprano::Error::ErrorCache::setError(a0);
}

void sipSoprano_Client_SparqlModel::sipProtect_setError(const QString& a0,int a1) const
{
    Soprano::Error::ErrorCache::setError(a0,a1);
}

int sipSoprano_Client_SparqlModel::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipSoprano_Client_SparqlModel::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipSoprano_Client_SparqlModel::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipSoprano_Client_SparqlModel::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipSoprano_Client_SparqlModel::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipSoprano_Client_SparqlModel::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_clearError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_clearError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipSoprano_Client_SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_clearError);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_setError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_setError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const Soprano::Error::Error * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_Client_SparqlModel,&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_SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|i",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_setError);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_receivers(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 8095 "sipsopranopart1.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_childEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_customEvent(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_setHost(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_setHost(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        quint16 a1 = 80;
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|t",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setHost(*a0,a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_setHost);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_setUser(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_setUser(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setUser(*a0,*a1);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_setUser);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_addStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_addStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::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(sipArgsParsed,sipName_SparqlModel,sipName_addStatement);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_removeStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_removeStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::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(sipArgsParsed,sipName_SparqlModel,sipName_removeStatement);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_removeAllStatements(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_removeAllStatements(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Soprano::Error::ErrorCode sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::removeAllStatements(*a0) : sipCpp->removeAllStatements(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_removeAllStatements);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_listContexts(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_listContexts(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp))
        {
            Soprano::NodeIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::NodeIterator((sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::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(sipArgsParsed,sipName_SparqlModel,sipName_listContexts);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_containsStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_containsStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::containsStatement(*a0) : sipCpp->containsStatement(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_containsStatement);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_containsAnyStatement(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_containsAnyStatement(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::containsAnyStatement(*a0) : sipCpp->containsAnyStatement(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_containsAnyStatement);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_listStatements(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_listStatements(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const Soprano::Statement * a0;
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp,sipType_Soprano_Statement,&a0))
        {
            Soprano::StatementIterator *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator((sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::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(sipArgsParsed,sipName_SparqlModel,sipName_listStatements);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_statementCount(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_statementCount(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::statementCount() : sipCpp->statementCount());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_statementCount);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_isEmpty(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::isEmpty() : sipCpp->isEmpty());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SparqlModel,sipName_isEmpty);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_SparqlModel_createBlankNode(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_SparqlModel_createBlankNode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Client::SparqlModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_Soprano_Client_SparqlModel,&sipCpp))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node((sipSelfWasArg ? sipCpp->Soprano::Client::SparqlModel::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(sipArgsParsed,sipName_SparqlModel,sipName_createBlankNode);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_Client_SparqlModel(void *, const sipTypeDef *);}
static void *cast_Soprano_Client_SparqlModel(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Soprano_Client_SparqlModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Model)->ctd_cast((Soprano::Model *)(Soprano::Client::SparqlModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_Client_SparqlModel(void *, int);}
static void release_Soprano_Client_SparqlModel(void *sipCppV,int state)
{
    Py_BEGIN_ALLOW_THREADS

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Client_SparqlModel *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Client::SparqlModel *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Client_SparqlModel(sipSimpleWrapper *);}
static void dealloc_Soprano_Client_SparqlModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Client_SparqlModel *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Client_SparqlModel(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_Soprano_Client_SparqlModel(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_Soprano_Client_SparqlModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipSoprano_Client_SparqlModel *sipCpp = 0;

    if (!sipCpp)
    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        quint16 a1 = 80;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J1tJ1J1",sipType_QString,&a0,&a0State,&a1,sipType_QString,&a2,&a2State,sipType_QString,&a3,&a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_SparqlModel(*a0,a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_Soprano_Client_SparqlModel[] = {{48, 255, 1}};


static PyMethodDef methods_Soprano_Client_SparqlModel[] = {
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_Client_SparqlModel_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Client_SparqlModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_SparqlModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Client_SparqlModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatement), meth_Soprano_Client_SparqlModel_containsAnyStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatement), meth_Soprano_Client_SparqlModel_containsStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createBlankNode), meth_Soprano_Client_SparqlModel_createBlankNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Client_SparqlModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Client_SparqlModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_Client_SparqlModel_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContexts), meth_Soprano_Client_SparqlModel_listContexts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatements), meth_Soprano_Client_SparqlModel_listStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Client_SparqlModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_Client_SparqlModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_Client_SparqlModel_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_SparqlModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHost), meth_Soprano_Client_SparqlModel_setHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUser), meth_Soprano_Client_SparqlModel_setUser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementCount), meth_Soprano_Client_SparqlModel_statementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Client_SparqlModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Client_SparqlModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__SparqlModel,
        {0}
    },
    sipNameNr_SparqlModel,
    -1,
    -1,
    {18, 255, 0},
    supers_Soprano_Client_SparqlModel,
    0,
    20, methods_Soprano_Client_SparqlModel,
    0, 0,
    0, 0,
    init_Soprano_Client_SparqlModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_SparqlModel,
    release_Soprano_Client_SparqlModel,
    cast_Soprano_Client_SparqlModel,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Client::SparqlModel::staticMetaObject,
    0,
    0
};
