/*
 * 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/dbusmodel.sip"
#include <soprano/dbusmodel.h>
#line 12 "sipsopranopart6.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 16 "sipsopranopart6.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 19 "sipsopranopart6.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 22 "sipsopranopart6.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 25 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 28 "sipsopranopart6.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 "sipsopranopart6.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 "sipsopranopart6.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 "sipsopranopart6.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 "sipsopranopart6.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 "sipsopranopart6.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 "sipsopranopart6.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 "sipsopranopart6.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 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 73 "sipsopranopart6.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 76 "sipsopranopart6.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 79 "sipsopranopart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 82 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 85 "sipsopranopart6.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 116 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 119 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 122 "sipsopranopart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 125 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 128 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 131 "sipsopranopart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 134 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 137 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 140 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 143 "sipsopranopart6.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 146 "sipsopranopart6.cpp"


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

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[20];
};

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

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

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

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

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

    return _id;
}

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_1(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_0(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_19(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_18(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

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

int sipSoprano_Client_DBusModel::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::DBusModel::statementCount();

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

Soprano::Error::ErrorCode sipSoprano_Client_DBusModel::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_DBusModel::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::DBusModel::createBlankNode();

    return sipVH_soprano_15(sipGILState,meth);
}

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Client_DBusModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Client_DBusModel,&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 697 "sipsopranopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Client_DBusModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Client_DBusModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Client_DBusModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->asyncCalls();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Client_DBusModel_executeQuery(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Client_DBusModel_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::Client::DBusModel *sipCpp;

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_DBusModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"J1J1|J8",sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State,sipType_Soprano_Backend,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_DBusModel(*a0,*a1,a2);
            Py_END_ALLOW_THREADS

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


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


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

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/filtermodel.sip"
#include <soprano/filtermodel.h>
#line 1378 "sipsopranopart6.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 1382 "sipsopranopart6.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 1385 "sipsopranopart6.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 1388 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 1391 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1394 "sipsopranopart6.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 1415 "sipsopranopart6.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 1418 "sipsopranopart6.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 1421 "sipsopranopart6.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 1424 "sipsopranopart6.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 1427 "sipsopranopart6.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 1430 "sipsopranopart6.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 1433 "sipsopranopart6.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 1436 "sipsopranopart6.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 1439 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1442 "sipsopranopart6.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1445 "sipsopranopart6.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1448 "sipsopranopart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1451 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1454 "sipsopranopart6.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 1485 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1488 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1491 "sipsopranopart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1494 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1497 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1500 "sipsopranopart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1503 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1506 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1509 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1512 "sipsopranopart6.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 1515 "sipsopranopart6.cpp"


class sipSoprano_FilterModel : public Soprano::FilterModel
{
public:
    sipSoprano_FilterModel();
    sipSoprano_FilterModel(Soprano::Model *);
    virtual ~sipSoprano_FilterModel();

    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_FilterModel(const sipSoprano_FilterModel &);
    sipSoprano_FilterModel &operator = (const sipSoprano_FilterModel &);

    char sipPyMethods[26];
};

sipSoprano_FilterModel::sipSoprano_FilterModel(): Soprano::FilterModel(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

const QMetaObject *sipSoprano_FilterModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_FilterModel);
}

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

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

    return _id;
}

void *sipSoprano_FilterModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_FilterModel,_clname)) ? this : Soprano::FilterModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_FilterModel *sipCpp;

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_FilterModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_FilterModel,&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 2207 "sipsopranopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_FilterModel *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_FilterModel *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_FilterModel *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_FilterModel *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_FilterModel *sipCpp;

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_Soprano_FilterModel,&sipCpp,sipType_Soprano_Model,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Soprano::FilterModel::setParentModel(a0) : sipCpp->setParentModel(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_FilterModel,sipName_setParentModel);

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::FilterModel::parentModel() : sipCpp->parentModel());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::FilterModel::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::FilterModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_FilterModel,&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_FilterModel,sipName_addStatement);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::FilterModel::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::FilterModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_FilterModel,&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_FilterModel,sipName_removeStatement);

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::StatementIterator((sipSelfWasArg ? sipCpp->Soprano::FilterModel::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::FilterModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_FilterModel,&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_FilterModel,sipName_listStatements);

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::NodeIterator((sipSelfWasArg ? sipCpp->Soprano::FilterModel::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_FilterModel,sipName_listContexts);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_FilterModel_executeQuery(PyObject *, PyObject *);}
static PyObject *meth_Soprano_FilterModel_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::FilterModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1E|J1",&sipSelf,sipType_Soprano_FilterModel,&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::FilterModel::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_FilterModel,sipName_executeQuery);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::FilterModel::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::FilterModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_FilterModel,&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_FilterModel,sipName_containsStatement);

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::FilterModel::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::FilterModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J9J9|J9",&sipSelf,sipType_Soprano_FilterModel,&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_FilterModel,sipName_containsAnyStatement);

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::FilterModel::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_FilterModel,sipName_write);

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node((sipSelfWasArg ? sipCpp->Soprano::FilterModel::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_FilterModel,sipName_createBlankNode);

    return NULL;
}


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

    {
        sipSoprano_FilterModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_FilterModel,&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_FilterModel,sipName_parentStatementsAdded);

    return NULL;
}


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

    {
        sipSoprano_FilterModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_Soprano_FilterModel,&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_FilterModel,sipName_parentStatementsRemoved);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_FilterModel,&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_FilterModel,sipName_parentStatementAdded);

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_Soprano_FilterModel,&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_FilterModel,sipName_parentStatementRemoved);

    return NULL;
}


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

    if (targetType == sipType_Soprano_FilterModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_FilterModel[] = {
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_FilterModel_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_FilterModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_FilterModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_FilterModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatement), meth_Soprano_FilterModel_containsAnyStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatement), meth_Soprano_FilterModel_containsStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createBlankNode), meth_Soprano_FilterModel_createBlankNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_FilterModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_FilterModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQuery), meth_Soprano_FilterModel_executeQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_FilterModel_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContexts), meth_Soprano_FilterModel_listContexts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatements), meth_Soprano_FilterModel_listStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentModel), meth_Soprano_FilterModel_parentModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementAdded), meth_Soprano_FilterModel_parentStatementAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementRemoved), meth_Soprano_FilterModel_parentStatementRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsAdded), meth_Soprano_FilterModel_parentStatementsAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsRemoved), meth_Soprano_FilterModel_parentStatementsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_FilterModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_FilterModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_FilterModel_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_FilterModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setParentModel), meth_Soprano_FilterModel_setParentModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementCount), meth_Soprano_FilterModel_statementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_FilterModel_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_write), meth_Soprano_FilterModel_write, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_FilterModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__FilterModel,
        {0}
    },
    sipNameNr_FilterModel,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_FilterModel,
    0,
    26, methods_Soprano_FilterModel,
    0, 0,
    0, 0,
    init_Soprano_FilterModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_FilterModel,
    release_Soprano_FilterModel,
    cast_Soprano_FilterModel,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::FilterModel::staticMetaObject,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/dbusexportmodel.sip"
#include <soprano/dbusexportmodel.h>
#line 3157 "sipsopranopart6.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 3161 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3164 "sipsopranopart6.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 3167 "sipsopranopart6.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 3170 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 3173 "sipsopranopart6.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 3194 "sipsopranopart6.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 3197 "sipsopranopart6.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 3200 "sipsopranopart6.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 3203 "sipsopranopart6.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 3206 "sipsopranopart6.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 3209 "sipsopranopart6.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 3212 "sipsopranopart6.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 3215 "sipsopranopart6.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 3218 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3221 "sipsopranopart6.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3224 "sipsopranopart6.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3227 "sipsopranopart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 3230 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 3233 "sipsopranopart6.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 3264 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 3267 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 3270 "sipsopranopart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 3273 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3276 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 3279 "sipsopranopart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 3282 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 3285 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 3288 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 3291 "sipsopranopart6.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 3294 "sipsopranopart6.cpp"


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

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[26];
};

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

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

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

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

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

    return _id;
}

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

void sipSoprano_Server_DBusExportModel::setParentModel(Soprano::Model *a0)
{
    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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::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_Server_DBusExportModel::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Server_DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Server_DBusExportModel,&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 3980 "sipsopranopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Server_DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Server_DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Server_DBusExportModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


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


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

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/dbusexportiterator.sip"
#include <soprano/dbusexportiterator.h>
#line 4465 "sipsopranopart6.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4469 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4472 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4475 "sipsopranopart6.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4478 "sipsopranopart6.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4481 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4484 "sipsopranopart6.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 4515 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 4518 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 4521 "sipsopranopart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4524 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 4527 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 4530 "sipsopranopart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4533 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4536 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4539 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4542 "sipsopranopart6.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 4545 "sipsopranopart6.cpp"


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

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

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

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

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

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

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

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

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

    return _id;
}

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

bool sipSoprano_Server_DBusExportIterator::event(QEvent *a0)
{
    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_Server_DBusExportIterator::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_Server_DBusExportIterator::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_Server_DBusExportIterator::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_Server_DBusExportIterator::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_Server_DBusExportIterator::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_Server_DBusExportIterator::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_Server_DBusExportIterator::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_Server_DBusExportIterator::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Server_DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Server_DBusExportIterator,&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 4916 "sipsopranopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deleteOnClose();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_DBusExportIterator_registerIterator(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_DBusExportIterator_registerIterator(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::Server::DBusExportIterator *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_Soprano_Server_DBusExportIterator,&sipCpp,sipType_QString,&a0,&a0State,sipType_QString,&a1,&a1State))
        {
            bool sipRes;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::DBusExportIterator *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Server_DBusExportIterator)
        return ptr;

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

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

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Server_DBusExportIterator *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Server::DBusExportIterator *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

    if (!sipCpp)
    {
        Soprano::StatementIterator * a0;
        QObject * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|JH",sipType_Soprano_StatementIterator,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Server_DBusExportIterator(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        Soprano::NodeIterator * a0;
        QObject * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|JH",sipType_Soprano_NodeIterator,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Server_DBusExportIterator(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        Soprano::QueryResultIterator * a0;
        QObject * a1 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9|JH",sipType_Soprano_QueryResultIterator,&a0,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Server_DBusExportIterator(*a0,a1);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Server_DBusExportIterator[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Server_DBusExportIterator_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Server_DBusExportIterator_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Server_DBusExportIterator_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Server_DBusExportIterator_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dbusObjectPath), meth_Soprano_Server_DBusExportIterator_dbusObjectPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteOnClose), meth_Soprano_Server_DBusExportIterator_deleteOnClose, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Server_DBusExportIterator_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nodeIterator), meth_Soprano_Server_DBusExportIterator_nodeIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryResultIterator), meth_Soprano_Server_DBusExportIterator_queryResultIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Server_DBusExportIterator_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerIterator), meth_Soprano_Server_DBusExportIterator_registerIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDeleteOnClose), meth_Soprano_Server_DBusExportIterator_setDeleteOnClose, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Server_DBusExportIterator_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementIterator), meth_Soprano_Server_DBusExportIterator_statementIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Server_DBusExportIterator_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unregisterIterator), meth_Soprano_Server_DBusExportIterator_unregisterIterator, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Server_DBusExportIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Server__DBusExportIterator,
        {0}
    },
    sipNameNr_DBusExportIterator,
    -1,
    -1,
    {68, 255, 0},
    supers_Soprano_Server_DBusExportIterator,
    0,
    16, methods_Soprano_Server_DBusExportIterator,
    0, 0,
    0, 0,
    init_Soprano_Server_DBusExportIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Server_DBusExportIterator,
    release_Soprano_Server_DBusExportIterator,
    cast_Soprano_Server_DBusExportIterator,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Server::DBusExportIterator::staticMetaObject,
    0,
    0
};




pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Server = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Server,
        {0}
    },
    sipNameNr_Server,
    -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/dbusclient.sip"
#include <soprano/dbusclient.h>
#line 5509 "sipsopranopart6.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5513 "sipsopranopart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5516 "sipsopranopart6.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/dbusmodel.sip"
#include <soprano/dbusmodel.h>
#line 5519 "sipsopranopart6.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 5540 "sipsopranopart6.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 5543 "sipsopranopart6.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 5546 "sipsopranopart6.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 5549 "sipsopranopart6.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 5552 "sipsopranopart6.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 5555 "sipsopranopart6.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 5558 "sipsopranopart6.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 5561 "sipsopranopart6.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 5564 "sipsopranopart6.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 5567 "sipsopranopart6.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 5570 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5573 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5576 "sipsopranopart6.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5579 "sipsopranopart6.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5582 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5585 "sipsopranopart6.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 5616 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 5619 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5622 "sipsopranopart6.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5625 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5628 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 5631 "sipsopranopart6.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5634 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5637 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5640 "sipsopranopart6.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5643 "sipsopranopart6.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 5646 "sipsopranopart6.cpp"


class sipSoprano_Client_DBusClient : public Soprano::Client::DBusClient
{
public:
    sipSoprano_Client_DBusClient(const QString&,QObject *);
    virtual ~sipSoprano_Client_DBusClient();

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipSoprano_Client_DBusClient::sipSoprano_Client_DBusClient(const QString& a0,QObject *a1): Soprano::Client::DBusClient(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Client_DBusClient::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Client_DBusClient);
}

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

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

    return _id;
}

void *sipSoprano_Client_DBusClient::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Client_DBusClient,_clname)) ? this : Soprano::Client::DBusClient::qt_metacast(_clname);
}

bool sipSoprano_Client_DBusClient::event(QEvent *a0)
{
    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_DBusClient::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_DBusClient::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_DBusClient::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_DBusClient::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_DBusClient::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_DBusClient::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_DBusClient::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_DBusClient::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Client_DBusClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusClient *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_Soprano_Client_DBusClient,&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 6005 "sipsopranopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Client_DBusClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Client_DBusClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Client_DBusClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_DBusClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusClient *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::DBusClient *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const Soprano::BackendSettings& a1def = Soprano::BackendSettings();
        const Soprano::BackendSettings * a1 = &a1def;
        int a1State = 0;
        Soprano::Client::DBusClient *sipCpp;

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

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Client_DBusClient,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeModel(*a0);
            Py_END_ALLOW_THREADS

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_DBusClient)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J1JH",sipType_QString,&a0,&a0State,sipType_QObject,&a1,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_DBusClient(*a0,a1);
            Py_END_ALLOW_THREADS

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Client_DBusClient[] = {
    {SIP_MLNAME_CAST(sipName_allModels), meth_Soprano_Client_DBusClient_allModels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Client_DBusClient_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_DBusClient_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Client_DBusClient_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_Client_DBusClient_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Client_DBusClient_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Client_DBusClient_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_Client_DBusClient_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Client_DBusClient_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeModel), meth_Soprano_Client_DBusClient_removeModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_DBusClient_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Client_DBusClient_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Client_DBusClient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__DBusClient,
        {0}
    },
    sipNameNr_DBusClient,
    -1,
    -1,
    {18, 255, 0},
    supers_Soprano_Client_DBusClient,
    0,
    12, methods_Soprano_Client_DBusClient,
    0, 0,
    0, 0,
    init_Soprano_Client_DBusClient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_DBusClient,
    release_Soprano_Client_DBusClient,
    cast_Soprano_Client_DBusClient,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &Soprano::Client::DBusClient::staticMetaObject,
    0,
    0
};




pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Client = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Client,
        {0}
    },
    sipNameNr_Client,
    -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 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 6468 "sipsopranopart6.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 6472 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6475 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6478 "sipsopranopart6.cpp"


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

    {
        Soprano::BindingSet *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        Soprano::BindingSet *sipCpp;

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::BindingSet *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->count();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const Soprano::Node * a1;
        Soprano::BindingSet *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J9",&sipSelf,sipType_Soprano_BindingSet,&sipCpp,sipType_QString,&a0,&a0State,sipType_Soprano_Node,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->insert(*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_BindingSet,sipName_insert);

    return NULL;
}


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

    {
        int a0;
        const Soprano::Node * a1;
        Soprano::BindingSet *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BiJ9",&sipSelf,sipType_Soprano_BindingSet,&sipCpp,&a0,sipType_Soprano_Node,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->replace(a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString * a0;
        int a0State = 0;
        const Soprano::Node * a1;
        Soprano::BindingSet *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1J9",&sipSelf,sipType_Soprano_BindingSet,&sipCpp,sipType_QString,&a0,&a0State,sipType_Soprano_Node,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->replace(*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_BindingSet,sipName_replace);

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_BindingSet___getitem__(PyObject *sipSelf,PyObject *sipArg);}
static PyObject *slot_Soprano_BindingSet___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::BindingSet *sipCpp = reinterpret_cast<Soprano::BindingSet *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_BindingSet));

    if (!sipCpp)
        return 0;

    int sipArgsParsed = 0;

    {
        int a0;

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

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

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

    {
        const QString * a0;
        int a0State = 0;

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

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

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

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

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

    return 0;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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

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

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

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

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_BindingSet[] = {
    {SIP_MLNAME_CAST(sipName_bindingNames), meth_Soprano_BindingSet_bindingNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contains), meth_Soprano_BindingSet_contains, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_count), meth_Soprano_BindingSet_count, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insert), meth_Soprano_BindingSet_insert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replace), meth_Soprano_BindingSet_replace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_Soprano_BindingSet_value, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_BindingSet = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__BindingSet,
        {0}
    },
    sipNameNr_BindingSet,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    slots_Soprano_BindingSet,
    6, methods_Soprano_BindingSet,
    0, 0,
    0, 0,
    init_Soprano_BindingSet,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_BindingSet,
    release_Soprano_BindingSet,
    cast_Soprano_BindingSet,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_Soprano_BindingSet,
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/plugin.sip"
#include <soprano/plugin.h>
#line 6876 "sipsopranopart6.cpp"

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


class sipSoprano_Plugin : public Soprano::Plugin
{
public:
    sipSoprano_Plugin(const QString&);
    virtual ~sipSoprano_Plugin();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

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

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Plugin::isAvailable();

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


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

    {
        Soprano::Plugin *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Plugin *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Plugin::isAvailable() : sipCpp->isAvailable());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


static PyMethodDef methods_Soprano_Plugin[] = {
    {SIP_MLNAME_CAST(sipName_isAvailable), meth_Soprano_Plugin_isAvailable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluginName), meth_Soprano_Plugin_pluginName, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Plugin = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Plugin,
        {0}
    },
    sipNameNr_Plugin,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {10, 255, 0},
    0,
    0,
    2, methods_Soprano_Plugin,
    0, 0,
    0, 0,
    init_Soprano_Plugin,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Plugin,
    release_Soprano_Plugin,
    cast_Soprano_Plugin,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};

#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 7106 "sipsopranopart6.cpp"

#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7110 "sipsopranopart6.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7113 "sipsopranopart6.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 7134 "sipsopranopart6.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 7137 "sipsopranopart6.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 7140 "sipsopranopart6.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 7143 "sipsopranopart6.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 7146 "sipsopranopart6.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 7149 "sipsopranopart6.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 7152 "sipsopranopart6.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 7155 "sipsopranopart6.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 7158 "sipsopranopart6.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 7161 "sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/soprano/storagemodel.sip"
#include <soprano/storagemodel.h>
#line 7164 "sipsopranopart6.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 7167 "sipsopranopart6.cpp"


class sipSoprano_Backend : public Soprano::Backend
{
public:
    sipSoprano_Backend(const QString&);
    virtual ~sipSoprano_Backend();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::StorageModel * createModel(const Soprano::BackendSettings&) const;
    bool deleteModelData(const Soprano::BackendSettings&) const;
    Soprano::BackendFeatures supportedFeatures() const;
    QStringList supportedUserFeatures() const;
    bool isAvailable() const;
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[6];
};

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

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

Soprano::StorageModel * sipSoprano_Backend::createModel(const Soprano::BackendSettings& a0) const
{
    extern Soprano::StorageModel * sipVH_soprano_25(sip_gilstate_t,PyObject *,const QList<Soprano::BackendSetting>&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return sipVH_soprano_25(sipGILState,meth,a0);
}

bool sipSoprano_Backend::deleteModelData(const Soprano::BackendSettings& a0) const
{
    extern bool sipVH_soprano_24(sip_gilstate_t,PyObject *,const QList<Soprano::BackendSetting>&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return sipVH_soprano_24(sipGILState,meth,a0);
}

Soprano::BackendFeatures sipSoprano_Backend::supportedFeatures() const
{
    extern Soprano::BackendFeatures sipVH_soprano_23(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

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

    return sipVH_soprano_23(sipGILState,meth);
}

QStringList sipSoprano_Backend::supportedUserFeatures() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Backend::supportedUserFeatures();

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

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return Soprano::Plugin::isAvailable();

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

Soprano::Error::Error sipSoprano_Backend::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[5]),sipPySelf,NULL,sipName_lastError);

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

    return sipVH_soprano_26(sipGILState,meth);
}

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

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

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


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

    {
        sipSoprano_Backend *sipCpp;

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        const Soprano::BackendSettings& a0def = Soprano::BackendSettings();
        const Soprano::BackendSettings * a0 = &a0def;
        int a0State = 0;
        Soprano::Backend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J1",&sipSelf,sipType_Soprano_Backend,&sipCpp,sipType_QList_0200Soprano_BackendSetting,&a0,&a0State))
        {
            Soprano::StorageModel *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Backend, sipName_createModel);
                return NULL;
            }

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

            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0200Soprano_BackendSetting,a0State);

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

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

    return NULL;
}


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

    {
        const Soprano::BackendSettings * a0;
        int a0State = 0;
        Soprano::Backend *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_Soprano_Backend,&sipCpp,sipType_QList_0200Soprano_BackendSetting,&a0,&a0State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Backend, sipName_deleteModelData);
                return NULL;
            }

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

            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0200Soprano_BackendSetting,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Backend *sipCpp;

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

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Backend, sipName_supportedFeatures);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::BackendFeatures(sipCpp->supportedFeatures());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Backend *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Soprano::Backend::supportedUserFeatures() : sipCpp->supportedUserFeatures()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1|J1",&sipSelf,sipType_Soprano_Backend,&sipCpp,sipType_Soprano_BackendFeatures,&a0,&a0State,sipType_QStringList,&a1,&a1State))
        {
            bool sipRes;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Backend)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

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

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

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_Soprano_Backend[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Backend_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_Backend_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteModelData), meth_Soprano_Backend_deleteModelData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Backend_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedFeatures), meth_Soprano_Backend_supportedFeatures, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedUserFeatures), meth_Soprano_Backend_supportedUserFeatures, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportsFeatures), meth_Soprano_Backend_supportsFeatures, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_soprano_Soprano_Backend = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Backend,
        {0}
    },
    sipNameNr_Backend,
    -1,
    -1,
    {10, 255, 0},
    supers_Soprano_Backend,
    0,
    7, methods_Soprano_Backend,
    0, 0,
    0, 0,
    init_Soprano_Backend,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Backend,
    release_Soprano_Backend,
    cast_Soprano_Backend,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    0,
    0,
    0
};
