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

#include "sipAPIsoprano.h"

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

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 17 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 20 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 23 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtNetwork/qhostaddress.sip"
#include <qhostaddress.h>
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 38 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 41 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 47 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 50 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 56 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 59 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 62 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


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

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

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

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

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

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

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

    return _id;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_soprano_20(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Client_TcpClient *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QHostAddress& a0def = QHostAddress::LocalHost;
        const QHostAddress * a0 = &a0def;
        int a0State = 0;
        int a1 = Soprano::Server::ServerCore::DEFAULT_PORT;
        Soprano::Client::TcpClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1i", &sipSelf, sipType_Soprano_Client_TcpClient, &sipCpp, sipType_QHostAddress, &a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->connect(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QHostAddress *>(a0),sipType_QHostAddress,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::TcpClient *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isConnected();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::TcpClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QList<Soprano::BackendSetting>& a1def = QList<Soprano::BackendSetting>();
        const QList<Soprano::BackendSetting> * a1 = &a1def;
        int a1State = 0;
        Soprano::Client::TcpClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|J1", &sipSelf, sipType_Soprano_Client_TcpClient, &sipCpp, sipType_QString,&a0, &a0State, sipType_QList_0100Soprano_BackendSetting,&a1, &a1State))
        {
            Soprano::Model *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createModel(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QList<Soprano::BackendSetting> *>(a1),sipType_QList_0100Soprano_BackendSetting,a1State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Client_TcpClient, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeModel(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_TcpClient)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_TcpClient(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_Client_TcpClient[] = {{134, 0, 0}, {30, 255, 1}};


static PyMethodDef methods_Soprano_Client_TcpClient[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Client_TcpClient_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_TcpClient_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connect), meth_Soprano_Client_TcpClient_connect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Client_TcpClient_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_Client_TcpClient_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Client_TcpClient_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnect), meth_Soprano_Client_TcpClient_disconnect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Client_TcpClient_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isConnected), meth_Soprano_Client_TcpClient_isConnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Client_TcpClient_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeModel), meth_Soprano_Client_TcpClient_removeModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Soprano_Client_TcpClient_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_TcpClient_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Client_TcpClient_timerEvent, METH_VARARGS, NULL}
};


extern "C" {static PyObject *varget_Soprano_Client_TcpClient_DEFAULT_PORT(void *, PyObject *);}
static PyObject *varget_Soprano_Client_TcpClient_DEFAULT_PORT(void *sipSelf, PyObject *)
{
    quint16 sipVal;
    Soprano::Client::TcpClient *sipCpp = reinterpret_cast<Soprano::Client::TcpClient *>(sipSelf);

    sipVal = sipCpp->DEFAULT_PORT;

    return PyLong_FromUnsignedLong(sipVal);
}

sipVariableDef variables_Soprano_Client_TcpClient[] = {
    {InstanceVariable, sipName_DEFAULT_PORT, (PyMethodDef *)varget_Soprano_Client_TcpClient_DEFAULT_PORT, NULL, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client_TcpClient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__TcpClient,
        {0}
    },
    {
        sipNameNr_TcpClient,
        {19, 255, 0},
        14, methods_Soprano_Client_TcpClient,
        0, 0,
        1, variables_Soprano_Client_TcpClient,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Client_TcpClient,
    0,
    init_Soprano_Client_TcpClient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_TcpClient,
    0,
    0,
    0,
    release_Soprano_Client_TcpClient,
    cast_Soprano_Client_TcpClient,
    0,
    0,
    0
},
    &Soprano::Client::TcpClient::staticMetaObject,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementpattern.sip"
#include <soprano/statementpattern.h>
#line 934 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodepattern.sip"
#include <soprano/nodepattern.h>
#line 938 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 941 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 944 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 947 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


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

    {
        Soprano::Inference::StatementPattern *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::NodePattern(sipCpp->subjectPattern());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Inference::StatementPattern *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::NodePattern(sipCpp->predicatePattern());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Inference::StatementPattern *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::NodePattern(sipCpp->objectPattern());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Inference_StatementPattern, &sipCpp, sipType_Soprano_BindingSet, &a0))
        {
            QString *sipRes;

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

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

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

    return NULL;
}


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

    {
        Soprano::Inference::StatementPattern *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Soprano::Inference::NodePattern * a0;
        const Soprano::Inference::NodePattern * a1;
        const Soprano::Inference::NodePattern * a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9J9", sipType_Soprano_Inference_NodePattern, &a0, sipType_Soprano_Inference_NodePattern, &a1, sipType_Soprano_Inference_NodePattern, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::StatementPattern(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Soprano_Inference_StatementPattern[] = {
    {SIP_MLNAME_CAST(sipName_createSparqlGraphPattern), meth_Soprano_Inference_StatementPattern_createSparqlGraphPattern, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_Inference_StatementPattern_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_match), meth_Soprano_Inference_StatementPattern_match, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_objectPattern), meth_Soprano_Inference_StatementPattern_objectPattern, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_predicatePattern), meth_Soprano_Inference_StatementPattern_predicatePattern, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subjectPattern), meth_Soprano_Inference_StatementPattern_subjectPattern, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Inference_StatementPattern = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__StatementPattern,
        {0}
    },
    {
        sipNameNr_StatementPattern,
        {36, 255, 0},
        6, methods_Soprano_Inference_StatementPattern,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Soprano_Inference_StatementPattern,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_StatementPattern,
    assign_Soprano_Inference_StatementPattern,
    array_Soprano_Inference_StatementPattern,
    copy_Soprano_Inference_StatementPattern,
    release_Soprano_Inference_StatementPattern,
    cast_Soprano_Inference_StatementPattern,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 1278 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 1282 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


class sipSoprano_Statement : public Soprano::Statement
{
public:
    sipSoprano_Statement();
    sipSoprano_Statement(const Soprano::Node&,const Soprano::Node&,const Soprano::Node&,const Soprano::Node&);
    sipSoprano_Statement(const Soprano::Statement&);
    ~sipSoprano_Statement();

public:
    sipSimpleWrapper *sipPySelf;

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

sipSoprano_Statement::sipSoprano_Statement(): Soprano::Statement(), sipPySelf(0)
{
}

sipSoprano_Statement::sipSoprano_Statement(const Soprano::Node& a0,const Soprano::Node& a1,const Soprano::Node& a2,const Soprano::Node& a3): Soprano::Statement(a0,a1,a2,a3), sipPySelf(0)
{
}

sipSoprano_Statement::sipSoprano_Statement(const Soprano::Statement& a0): Soprano::Statement(a0), sipPySelf(0)
{
}

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


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Statement *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Statement *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Statement *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Statement *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Statement *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_Statement___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Statement___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Statement *sipCpp = reinterpret_cast<Soprano::Statement *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Statement));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Statement * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_Statement___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Statement___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Statement *sipCpp = reinterpret_cast<Soprano::Statement *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Statement));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Statement * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9J9|J9", sipType_Soprano_Node, &a0, sipType_Soprano_Node, &a1, sipType_Soprano_Node, &a2, sipType_Soprano_Node, &a3))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Statement(*a0,*a1,*a2,*a3);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Statement * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_Statement[] = {
    {(void *)slot_Soprano_Statement___ne__, ne_slot},
    {(void *)slot_Soprano_Statement___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Soprano_Statement[] = {
    {SIP_MLNAME_CAST(sipName_context), meth_Soprano_Statement_context, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_Statement_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_matches), meth_Soprano_Statement_matches, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_object), meth_Soprano_Statement_object, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_predicate), meth_Soprano_Statement_predicate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContext), meth_Soprano_Statement_setContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setObject), meth_Soprano_Statement_setObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPredicate), meth_Soprano_Statement_setPredicate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSubject), meth_Soprano_Statement_setSubject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subject), meth_Soprano_Statement_subject, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Statement = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Statement,
        {0}
    },
    {
        sipNameNr_Statement,
        {11, 255, 0},
        10, methods_Soprano_Statement,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Soprano_Statement,
    init_Soprano_Statement,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Statement,
    assign_Soprano_Statement,
    array_Soprano_Statement,
    copy_Soprano_Statement,
    release_Soprano_Statement,
    cast_Soprano_Statement,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sparqlmodel.sip"
#include <soprano/sparqlmodel.h>
#line 1848 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1852 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/asyncresult.sip"
#include <soprano/asyncresult.h>
#line 1855 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 1858 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 1861 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 1864 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 1867 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 1870 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 1873 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1876 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1879 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1882 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1885 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1888 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1891 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1894 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1897 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1900 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1903 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1906 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1909 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1912 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 1915 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


class sipSoprano_Client_SparqlModel : public Soprano::Client::SparqlModel
{
public:
    sipSoprano_Client_SparqlModel(const QString&,quint16,const QString&,const QString&);
    virtual ~sipSoprano_Client_SparqlModel();

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[20];
};

sipSoprano_Client_SparqlModel::sipSoprano_Client_SparqlModel(const QString& a0,quint16 a1,const QString& a2,const QString& a3): Soprano::Client::SparqlModel(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Client_SparqlModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Client_SparqlModel);
}

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

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

    return _id;
}

void *sipSoprano_Client_SparqlModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Client_SparqlModel,_clname)) ? this : Soprano::Client::SparqlModel::qt_metacast(_clname);
}

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::addStatement(a0);

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::removeStatement(a0);

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::removeAllStatements(a0);

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::listStatements(a0);

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

    return sipVH_soprano_16(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::listContexts();

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

    return sipVH_soprano_15(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::containsAnyStatement(a0);

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

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::containsStatement(a0);

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

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::isEmpty();

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

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

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::statementCount();

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

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

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

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

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

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

    return sipVH_soprano_14(sipGILState,sipMeth,a0);
}

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

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

    if (!sipMeth)
        return Soprano::Client::SparqlModel::createBlankNode();

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

    return sipVH_soprano_13(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_soprano_20(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Client_SparqlModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Client_SparqlModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_SparqlModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        quint16 a1 = 80;
        Soprano::Client::SparqlModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::SparqlModel *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Client::SparqlModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::SparqlModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Client::SparqlModel *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Client_SparqlModel, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPath(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|EJ1", &sipSelf, sipType_Soprano_Client_SparqlModel, &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::SparqlModel::executeQuery(*a0,a1,*a2) : sipCpp->executeQuery(*a0,a1,*a2)));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|EJ1", &sipSelf, sipType_Soprano_Client_SparqlModel, &sipCpp, sipType_QString,&a0, &a0State, sipType_Soprano_Query_QueryLanguage, &a1, sipType_QString,&a2, &a2State))
        {
            Soprano::Util::AsyncResult *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->executeQueryAsync(*a0,a1,*a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

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

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

    return NULL;
}


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

    {
        Soprano::Client::SparqlModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listContextsAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_SparqlModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        quint16 a1 = 80;
        const QString& a2def = QString();
        const QString * a2 = &a2def;
        int a2State = 0;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|J1tJ1J1", sipType_QString,&a0, &a0State, &a1, sipType_QString,&a2, &a2State, sipType_QString,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Client_SparqlModel(*a0,a1,*a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Soprano_Client_SparqlModel[] = {
    {SIP_MLNAME_CAST(sipName_addStatement), meth_Soprano_Client_SparqlModel_addStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Client_SparqlModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_SparqlModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Client_SparqlModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsAnyStatement), meth_Soprano_Client_SparqlModel_containsAnyStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containsStatement), meth_Soprano_Client_SparqlModel_containsStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createBlankNode), meth_Soprano_Client_SparqlModel_createBlankNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Client_SparqlModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Client_SparqlModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQuery), meth_Soprano_Client_SparqlModel_executeQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQueryAsync), meth_Soprano_Client_SparqlModel_executeQueryAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_Client_SparqlModel_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContexts), meth_Soprano_Client_SparqlModel_listContexts, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listContextsAsync), meth_Soprano_Client_SparqlModel_listContextsAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatements), meth_Soprano_Client_SparqlModel_listStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listStatementsAsync), meth_Soprano_Client_SparqlModel_listStatementsAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Client_SparqlModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllStatements), meth_Soprano_Client_SparqlModel_removeAllStatements, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStatement), meth_Soprano_Client_SparqlModel_removeStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Soprano_Client_SparqlModel_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_SparqlModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHost), meth_Soprano_Client_SparqlModel_setHost, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPath), meth_Soprano_Client_SparqlModel_setPath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setUser), meth_Soprano_Client_SparqlModel_setUser, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_statementCount), meth_Soprano_Client_SparqlModel_statementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Client_SparqlModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client_SparqlModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__SparqlModel,
        {0}
    },
    {
        sipNameNr_SparqlModel,
        {19, 255, 0},
        26, methods_Soprano_Client_SparqlModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Client_SparqlModel,
    0,
    init_Soprano_Client_SparqlModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_SparqlModel,
    0,
    0,
    0,
    release_Soprano_Client_SparqlModel,
    cast_Soprano_Client_SparqlModel,
    0,
    0,
    0
},
    &Soprano::Client::SparqlModel::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/simplestatementiterator.sip"
#include <soprano/simplestatementiterator.h>
#line 3337 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3341 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 3344 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 3347 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


class sipSoprano_Util_SimpleStatementIterator : public Soprano::Util::SimpleStatementIterator
{
public:
    sipSoprano_Util_SimpleStatementIterator();
    sipSoprano_Util_SimpleStatementIterator(const QList<Soprano::Statement>&);
    sipSoprano_Util_SimpleStatementIterator(const Soprano::Util::SimpleStatementIterator&);
    ~sipSoprano_Util_SimpleStatementIterator();

public:
    sipSimpleWrapper *sipPySelf;

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

sipSoprano_Util_SimpleStatementIterator::sipSoprano_Util_SimpleStatementIterator(): Soprano::Util::SimpleStatementIterator(), sipPySelf(0)
{
}

sipSoprano_Util_SimpleStatementIterator::sipSoprano_Util_SimpleStatementIterator(const QList<Soprano::Statement>& a0): Soprano::Util::SimpleStatementIterator(a0), sipPySelf(0)
{
}

sipSoprano_Util_SimpleStatementIterator::sipSoprano_Util_SimpleStatementIterator(const Soprano::Util::SimpleStatementIterator& a0): Soprano::Util::SimpleStatementIterator(a0), sipPySelf(0)
{
}

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


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

    if (targetType == sipType_Soprano_Util_SimpleStatementIterator)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_Util_SimpleStatementIterator(SIP_SSIZE_T);}
static void *array_Soprano_Util_SimpleStatementIterator(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::Util::SimpleStatementIterator[sipNrElem];
}


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Util::SimpleStatementIterator * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Util_SimpleStatementIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Util__SimpleStatementIterator,
        {0}
    },
    {
        sipNameNr_SimpleStatementIterator,
        {74, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Util_SimpleStatementIterator,
    0,
    init_Soprano_Util_SimpleStatementIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Util_SimpleStatementIterator,
    assign_Soprano_Util_SimpleStatementIterator,
    array_Soprano_Util_SimpleStatementIterator,
    copy_Soprano_Util_SimpleStatementIterator,
    release_Soprano_Util_SimpleStatementIterator,
    cast_Soprano_Util_SimpleStatementIterator,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/simplenodeiterator.sip"
#include <soprano/simplenodeiterator.h>
#line 3559 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"

#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3563 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 3566 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


class sipSoprano_Util_SimpleNodeIterator : public Soprano::Util::SimpleNodeIterator
{
public:
    sipSoprano_Util_SimpleNodeIterator();
    sipSoprano_Util_SimpleNodeIterator(const QList<Soprano::Node>&);
    sipSoprano_Util_SimpleNodeIterator(const Soprano::Util::SimpleNodeIterator&);
    ~sipSoprano_Util_SimpleNodeIterator();

public:
    sipSimpleWrapper *sipPySelf;

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

sipSoprano_Util_SimpleNodeIterator::sipSoprano_Util_SimpleNodeIterator(): Soprano::Util::SimpleNodeIterator(), sipPySelf(0)
{
}

sipSoprano_Util_SimpleNodeIterator::sipSoprano_Util_SimpleNodeIterator(const QList<Soprano::Node>& a0): Soprano::Util::SimpleNodeIterator(a0), sipPySelf(0)
{
}

sipSoprano_Util_SimpleNodeIterator::sipSoprano_Util_SimpleNodeIterator(const Soprano::Util::SimpleNodeIterator& a0): Soprano::Util::SimpleNodeIterator(a0), sipPySelf(0)
{
}

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


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

    if (targetType == sipType_Soprano_Util_SimpleNodeIterator)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_Util_SimpleNodeIterator(SIP_SSIZE_T);}
static void *array_Soprano_Util_SimpleNodeIterator(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::Util::SimpleNodeIterator[sipNrElem];
}


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Util::SimpleNodeIterator * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Util_SimpleNodeIterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Util__SimpleNodeIterator,
        {0}
    },
    {
        sipNameNr_SimpleNodeIterator,
        {74, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Util_SimpleNodeIterator,
    0,
    init_Soprano_Util_SimpleNodeIterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Util_SimpleNodeIterator,
    assign_Soprano_Util_SimpleNodeIterator,
    array_Soprano_Util_SimpleNodeIterator,
    copy_Soprano_Util_SimpleNodeIterator,
    release_Soprano_Util_SimpleNodeIterator,
    cast_Soprano_Util_SimpleNodeIterator,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 3779 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::context());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::sourceStatement());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::InferenceGraph());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::InferenceMetaData());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::SIL::silNamespace());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


static PyMethodDef methods_Soprano_Vocabulary_SIL[] = {
    {SIP_MLNAME_CAST(sipName_InferenceGraph), meth_Soprano_Vocabulary_SIL_InferenceGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_InferenceMetaData), meth_Soprano_Vocabulary_SIL_InferenceMetaData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_context), meth_Soprano_Vocabulary_SIL_context, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_silNamespace), meth_Soprano_Vocabulary_SIL_silNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sourceStatement), meth_Soprano_Vocabulary_SIL_sourceStatement, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Vocabulary_SIL = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Vocabulary__SIL,
        {0}
    },
    {
        sipNameNr_SIL,
        {85, 255, 0},
        5, methods_Soprano_Vocabulary_SIL,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/signalcachemodel.sip"
#include <soprano/signalcachemodel.h>
#line 3968 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 3972 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 3975 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 3978 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 3981 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 3984 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 3987 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 3990 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 3993 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 3996 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 3999 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4002 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4005 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4008 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4011 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4014 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4017 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4020 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4023 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4026 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4029 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4032 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 4035 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


class sipSoprano_Util_SignalCacheModel : public Soprano::Util::SignalCacheModel
{
public:
    sipSoprano_Util_SignalCacheModel(Soprano::Model *);
    virtual ~sipSoprano_Util_SignalCacheModel();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void parentStatementsAdded();
    void parentStatementsRemoved();
    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 parentStatementAdded(const Soprano::Statement&);
    void parentStatementRemoved(const Soprano::Statement&);
    bool event(QEvent *);
    bool eventFilter(QObject *,QEvent *);
    void timerEvent(QTimerEvent *);
    void childEvent(QChildEvent *);
    void customEvent(QEvent *);
    void connectNotify(const char *);
    void disconnectNotify(const char *);
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[26];
};

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

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

const QMetaObject *sipSoprano_Util_SignalCacheModel::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Util_SignalCacheModel);
}

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

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

    return _id;
}

void *sipSoprano_Util_SignalCacheModel::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Util_SignalCacheModel,_clname)) ? this : Soprano::Util::SignalCacheModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    sipVH_soprano_19(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_soprano_18(sipGILState,sipMeth);
}

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

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

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

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_soprano_0(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_soprano_16(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_soprano_15(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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

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

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_soprano_14(sipGILState,sipMeth,a0);
}

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

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

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

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

    return sipVH_soprano_13(sipGILState,sipMeth);
}

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

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

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

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

    sipVH_soprano_17(sipGILState,sipMeth,a0);
}

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

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

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

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

    sipVH_soprano_17(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        Soprano::Util::SignalCacheModel::timerEvent(a0);
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_soprano_20(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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

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

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

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

void sipSoprano_Util_SignalCacheModel::sipProtectVirt_parentStatementsAdded(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Soprano::Util::SignalCacheModel::parentStatementsAdded() : parentStatementsAdded());
}

void sipSoprano_Util_SignalCacheModel::sipProtectVirt_parentStatementsRemoved(bool sipSelfWasArg)
{
    (sipSelfWasArg ? Soprano::Util::SignalCacheModel::parentStatementsRemoved() : parentStatementsRemoved());
}

void sipSoprano_Util_SignalCacheModel::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? Soprano::Util::SignalCacheModel::timerEvent(a0) : timerEvent(a0));
}


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

    {
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::SignalCacheModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->cacheTime();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        Soprano::Util::SignalCacheModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Soprano_Util_SignalCacheModel, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setCacheTime(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Util_SignalCacheModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_SignalCacheModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        Soprano::Model * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Soprano_Util_SignalCacheModel[] = {
    {SIP_MLNAME_CAST(sipName_cacheTime), meth_Soprano_Util_SignalCacheModel_cacheTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Util_SignalCacheModel_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Util_SignalCacheModel_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Util_SignalCacheModel_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Util_SignalCacheModel_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Util_SignalCacheModel_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementAdded), meth_Soprano_Util_SignalCacheModel_parentStatementAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementRemoved), meth_Soprano_Util_SignalCacheModel_parentStatementRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsAdded), meth_Soprano_Util_SignalCacheModel_parentStatementsAdded, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentStatementsRemoved), meth_Soprano_Util_SignalCacheModel_parentStatementsRemoved, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Util_SignalCacheModel_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Soprano_Util_SignalCacheModel_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCacheTime), meth_Soprano_Util_SignalCacheModel_setCacheTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Util_SignalCacheModel_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Util_SignalCacheModel_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Util_SignalCacheModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Util__SignalCacheModel,
        {0}
    },
    {
        sipNameNr_SignalCacheModel,
        {74, 255, 0},
        15, methods_Soprano_Util_SignalCacheModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Util_SignalCacheModel,
    0,
    init_Soprano_Util_SignalCacheModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Util_SignalCacheModel,
    0,
    0,
    0,
    release_Soprano_Util_SignalCacheModel,
    cast_Soprano_Util_SignalCacheModel,
    0,
    0,
    0
},
    &Soprano::Util::SignalCacheModel::staticMetaObject,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/servercore.sip"
#include <soprano/servercore.h>
#line 5229 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5233 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 5236 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5239 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5242 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5245 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5248 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 5251 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5254 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5257 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5260 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5263 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5266 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5269 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5272 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5275 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5278 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5281 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5284 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 5287 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


class sipSoprano_Server_ServerCore : public Soprano::Server::ServerCore
{
public:
    sipSoprano_Server_ServerCore(QObject *);
    virtual ~sipSoprano_Server_ServerCore();

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

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    Soprano::Model * model(const QString&);
    void removeModel(const QString&);
    QStringList allModels() const;
    Soprano::Model * createModel(const QList<Soprano::BackendSetting>&);
    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_ServerCore(const sipSoprano_Server_ServerCore &);
    sipSoprano_Server_ServerCore &operator = (const sipSoprano_Server_ServerCore &);

    char sipPyMethods[12];
};

sipSoprano_Server_ServerCore::sipSoprano_Server_ServerCore(QObject *a0): Soprano::Server::ServerCore(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipSoprano_Server_ServerCore::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Server_ServerCore);
}

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

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

    return _id;
}

void *sipSoprano_Server_ServerCore::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Server_ServerCore,_clname)) ? this : Soprano::Server::ServerCore::qt_metacast(_clname);
}

Soprano::Model * sipSoprano_Server_ServerCore::model(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Server::ServerCore::model(a0);

    extern Soprano::Model * sipVH_soprano_3(sip_gilstate_t,PyObject *,const QString&);

    return sipVH_soprano_3(sipGILState,sipMeth,a0);
}

void sipSoprano_Server_ServerCore::removeModel(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Soprano::Server::ServerCore::removeModel(a0);
        return;
    }

    typedef void (*sipVH_QtCore_33)(sip_gilstate_t,PyObject *,const QString&);

    ((sipVH_QtCore_33)(sipModuleAPI_soprano_QtCore->em_virthandlers[33]))(sipGILState,sipMeth,a0);
}

QStringList sipSoprano_Server_ServerCore::allModels() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Server::ServerCore::allModels();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_soprano_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

Soprano::Model * sipSoprano_Server_ServerCore::createModel(const QList<Soprano::BackendSetting>& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Server::ServerCore::createModel(a0);

    extern Soprano::Model * sipVH_soprano_2(sip_gilstate_t,PyObject *,const QList<Soprano::BackendSetting>&);

    return sipVH_soprano_2(sipGILState,sipMeth,a0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_soprano_20(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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

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

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

Soprano::Model * sipSoprano_Server_ServerCore::sipProtectVirt_createModel(bool sipSelfWasArg,const QList<Soprano::BackendSetting>& a0)
{
    return (sipSelfWasArg ? Soprano::Server::ServerCore::createModel(a0) : createModel(a0));
}


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

    {
        sipSoprano_Server_ServerCore *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Server_ServerCore *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_ServerCore *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Server_ServerCore *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Server_ServerCore *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Server_ServerCore *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_ServerCore *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Server_ServerCore *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const Soprano::Backend * a0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp, sipType_Soprano_Backend, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBackend(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::ServerCore *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->backend();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QList<Soprano::BackendSetting> * a0;
        int a0State = 0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp, sipType_QList_0100Soprano_BackendSetting,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBackendSettings(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::BackendSetting> *>(a0),sipType_QList_0100Soprano_BackendSetting,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::ServerCore *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::BackendSetting>(sipCpp->backendSettings());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->Soprano::Server::ServerCore::model(*a0) : sipCpp->model(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Soprano::Server::ServerCore::removeModel(*a0) : sipCpp->removeModel(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::ServerCore *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Soprano::Server::ServerCore::allModels() : sipCpp->allModels()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        quint16 a0 = Soprano::Server::ServerCore::DEFAULT_PORT;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|t", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listen(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp))
        {
            quint16 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serverPort();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->registerAsDBusObject(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QList<Soprano::BackendSetting> * a0;
        int a0State = 0;
        sipSoprano_Server_ServerCore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp, sipType_QList_0100Soprano_BackendSetting,&a0, &a0State))
        {
            Soprano::Model *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createModel(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::BackendSetting> *>(a0),sipType_QList_0100Soprano_BackendSetting,a0State);

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

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

    return NULL;
}


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

    {
        int a0;
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setMaximumConnectionCount(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ServerCore, sipName_setMaximumConnectionCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Server_ServerCore_maximumConnectionCount(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Server_ServerCore_maximumConnectionCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Server::ServerCore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Server_ServerCore, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->maximumConnectionCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_ServerCore, sipName_maximumConnectionCount, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_Server_ServerCore(void *, const sipTypeDef *);}
static void *cast_Soprano_Server_ServerCore(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Soprano_Server_ServerCore)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(Soprano::Server::ServerCore *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Error_ErrorCache)->ctd_cast((Soprano::Error::ErrorCache *)(Soprano::Server::ServerCore *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_Server_ServerCore(void *, int);}
static void release_Soprano_Server_ServerCore(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Server_ServerCore *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Server::ServerCore *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Server_ServerCore(sipSimpleWrapper *);}
static void dealloc_Soprano_Server_ServerCore(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Server_ServerCore *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Server_ServerCore(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Soprano_Server_ServerCore(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Server_ServerCore(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipSoprano_Server_ServerCore *sipCpp = 0;

    {
        QObject * a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Server_ServerCore(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_Server_ServerCore[] = {{134, 0, 0}, {30, 255, 1}};


static PyMethodDef methods_Soprano_Server_ServerCore[] = {
    {SIP_MLNAME_CAST(sipName_allModels), meth_Soprano_Server_ServerCore_allModels, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_backend), meth_Soprano_Server_ServerCore_backend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_backendSettings), meth_Soprano_Server_ServerCore_backendSettings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Server_ServerCore_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Server_ServerCore_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Server_ServerCore_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_Server_ServerCore_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Server_ServerCore_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Server_ServerCore_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_listen), meth_Soprano_Server_ServerCore_listen, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maximumConnectionCount), meth_Soprano_Server_ServerCore_maximumConnectionCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_model), meth_Soprano_Server_ServerCore_model, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Server_ServerCore_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerAsDBusObject), meth_Soprano_Server_ServerCore_registerAsDBusObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeModel), meth_Soprano_Server_ServerCore_removeModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Soprano_Server_ServerCore_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serverPort), meth_Soprano_Server_ServerCore_serverPort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBackend), meth_Soprano_Server_ServerCore_setBackend, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBackendSettings), meth_Soprano_Server_ServerCore_setBackendSettings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Server_ServerCore_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaximumConnectionCount), meth_Soprano_Server_ServerCore_setMaximumConnectionCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_Soprano_Server_ServerCore_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Server_ServerCore_timerEvent, METH_VARARGS, NULL}
};


extern "C" {static PyObject *varget_Soprano_Server_ServerCore_DEFAULT_PORT(void *, PyObject *);}
static PyObject *varget_Soprano_Server_ServerCore_DEFAULT_PORT(void *sipSelf, PyObject *)
{
    quint16 sipVal;
    Soprano::Server::ServerCore *sipCpp = reinterpret_cast<Soprano::Server::ServerCore *>(sipSelf);

    sipVal = sipCpp->DEFAULT_PORT;

    return PyLong_FromUnsignedLong(sipVal);
}

sipVariableDef variables_Soprano_Server_ServerCore[] = {
    {InstanceVariable, sipName_DEFAULT_PORT, (PyMethodDef *)varget_Soprano_Server_ServerCore_DEFAULT_PORT, NULL, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Server_ServerCore = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Server__ServerCore,
        {0}
    },
    {
        sipNameNr_ServerCore,
        {67, 255, 0},
        23, methods_Soprano_Server_ServerCore,
        0, 0,
        1, variables_Soprano_Server_ServerCore,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Server_ServerCore,
    0,
    init_Soprano_Server_ServerCore,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Server_ServerCore,
    0,
    0,
    0,
    release_Soprano_Server_ServerCore,
    cast_Soprano_Server_ServerCore,
    0,
    0,
    0
},
    &Soprano::Server::ServerCore::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/serializer.sip"
#include <soprano/serializer.h>
#line 6490 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6494 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qhash.sip"
#include <qhash.h>
#line 6497 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 77 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 6500 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 6503 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 6506 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 6509 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 6512 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 6515 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


class sipSoprano_Serializer : public Soprano::Serializer
{
public:
    sipSoprano_Serializer(const QString&);
    virtual ~sipSoprano_Serializer();

    /*
     * 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::RdfSerializations supportedSerializations() const;
    QStringList supportedUserSerializations() const;
    bool serialize(Soprano::StatementIterator,QTextStream&,Soprano::RdfSerialization,const QString&) const;
    bool isAvailable() const;
    Soprano::Error::Error lastError() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipSoprano_Serializer(const sipSoprano_Serializer &);
    sipSoprano_Serializer &operator = (const sipSoprano_Serializer &);

    char sipPyMethods[5];
};

sipSoprano_Serializer::sipSoprano_Serializer(const QString& a0): Soprano::Serializer(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipSoprano_Serializer::~sipSoprano_Serializer()
{
    sipCommonDtor(sipPySelf);
}

Soprano::RdfSerializations sipSoprano_Serializer::supportedSerializations() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_Serializer,sipName_supportedSerializations);

    if (!sipMeth)
        return Soprano::RdfSerializations();

    extern Soprano::RdfSerializations sipVH_soprano_5(sip_gilstate_t,PyObject *);

    return sipVH_soprano_5(sipGILState,sipMeth);
}

QStringList sipSoprano_Serializer::supportedUserSerializations() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_supportedUserSerializations);

    if (!sipMeth)
        return Soprano::Serializer::supportedUserSerializations();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_soprano_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

bool sipSoprano_Serializer::serialize(Soprano::StatementIterator a0,QTextStream& a1,Soprano::RdfSerialization a2,const QString& a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_Serializer,sipName_serialize);

    if (!sipMeth)
        return 0;

    extern bool sipVH_soprano_4(sip_gilstate_t,PyObject *,Soprano::StatementIterator,QTextStream&,Soprano::RdfSerialization,const QString&);

    return sipVH_soprano_4(sipGILState,sipMeth,a0,a1,a2,a3);
}

bool sipSoprano_Serializer::isAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_isAvailable);

    if (!sipMeth)
        return Soprano::Plugin::isAvailable();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_soprano_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

Soprano::Error::Error sipSoprano_Serializer::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_lastError);

    if (!sipMeth)
        return Soprano::Error::ErrorCache::lastError();

    extern Soprano::Error::Error sipVH_soprano_20(sip_gilstate_t,PyObject *);

    return sipVH_soprano_20(sipGILState,sipMeth);
}

void sipSoprano_Serializer::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

void sipSoprano_Serializer::sipProtect_setError(const Soprano::Error::Error& a0) const
{
    Soprano::Error::ErrorCache::setError(a0);
}

void sipSoprano_Serializer::sipProtect_setError(const QString& a0,int a1) const
{
    Soprano::Error::ErrorCache::setError(a0,a1);
}


extern "C" {static PyObject *meth_Soprano_Serializer_clearError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_clearError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipSoprano_Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Serializer, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_clearError();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Serializer, sipName_clearError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_setError(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_setError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const Soprano::Error::Error * a0;
        sipSoprano_Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_Soprano_Serializer, &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_Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Serializer, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setError(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Serializer, sipName_setError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_supportedSerializations(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_supportedSerializations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Serializer, &sipCpp))
        {
            Soprano::RdfSerializations *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Serializer, sipName_supportedSerializations);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::RdfSerializations(sipCpp->supportedSerializations());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_RdfSerializations,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Serializer, sipName_supportedSerializations, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_supportedUserSerializations(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_supportedUserSerializations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        Soprano::Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Serializer, &sipCpp))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList((sipSelfWasArg ? sipCpp->Soprano::Serializer::supportedUserSerializations() : sipCpp->supportedUserSerializations()));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Serializer, sipName_supportedUserSerializations, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_supportsSerialization(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_supportsSerialization(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::RdfSerialization a0;
        const QString& a1def = QString();
        const QString * a1 = &a1def;
        int a1State = 0;
        Soprano::Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE|J1", &sipSelf, sipType_Soprano_Serializer, &sipCpp, sipType_Soprano_RdfSerialization, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportsSerialization(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Serializer, sipName_supportsSerialization, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_serialize(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_serialize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        Soprano::StatementIterator * a0;
        QTextStream * a1;
        Soprano::RdfSerialization a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;
        Soprano::Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9E|J1", &sipSelf, sipType_Soprano_Serializer, &sipCpp, sipType_Soprano_StatementIterator, &a0, sipType_QTextStream, &a1, sipType_Soprano_RdfSerialization, &a2, sipType_QString,&a3, &a3State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Serializer, sipName_serialize);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->serialize(*a0,*a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Serializer, sipName_serialize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_addPrefix(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_addPrefix(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString * a0;
        int a0State = 0;
        const QUrl * a1;
        Soprano::Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Soprano_Serializer, &sipCpp, sipType_QString,&a0, &a0State, sipType_QUrl, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addPrefix(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Serializer, sipName_addPrefix, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_clearPrefixes(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_clearPrefixes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Serializer, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearPrefixes();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Serializer, sipName_clearPrefixes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Serializer_prefixes(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Serializer_prefixes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Serializer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Serializer, &sipCpp))
        {
            QHash<QString,QUrl> *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QHash<QString,QUrl>(sipCpp->prefixes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QHash_0100QString_0100QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Serializer, sipName_prefixes, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_Serializer(void *, const sipTypeDef *);}
static void *cast_Soprano_Serializer(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_Soprano_Serializer)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Plugin)->ctd_cast((Soprano::Plugin *)(Soprano::Serializer *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_Soprano_Error_ErrorCache)->ctd_cast((Soprano::Error::ErrorCache *)(Soprano::Serializer *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_Serializer(void *, int);}
static void release_Soprano_Serializer(void *sipCppV,int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Serializer *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Serializer *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_Soprano_Serializer(sipSimpleWrapper *);}
static void dealloc_Soprano_Serializer(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipSoprano_Serializer *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Serializer(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_Soprano_Serializer(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Serializer(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_Serializer *sipCpp = 0;

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipSoprano_Serializer(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Soprano_Serializer[] = {{57, 255, 0}, {30, 255, 1}};


static PyMethodDef methods_Soprano_Serializer[] = {
    {SIP_MLNAME_CAST(sipName_addPrefix), meth_Soprano_Serializer_addPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Serializer_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearPrefixes), meth_Soprano_Serializer_clearPrefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prefixes), meth_Soprano_Serializer_prefixes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serialize), meth_Soprano_Serializer_serialize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Serializer_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedSerializations), meth_Soprano_Serializer_supportedSerializations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportedUserSerializations), meth_Soprano_Serializer_supportedUserSerializations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_supportsSerialization), meth_Soprano_Serializer_supportsSerialization, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Serializer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Serializer,
        {0}
    },
    {
        sipNameNr_Serializer,
        {11, 255, 0},
        9, methods_Soprano_Serializer,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Serializer,
    0,
    init_Soprano_Serializer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Serializer,
    0,
    0,
    0,
    release_Soprano_Serializer,
    cast_Soprano_Serializer,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 7086 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart1.cpp"


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_subPropertyOf(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_subPropertyOf(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::subPropertyOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_subPropertyOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_subClassOf(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_subClassOf(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::subClassOf());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_subClassOf, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_seeAlso(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_seeAlso(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::seeAlso());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_seeAlso, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_range(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_range(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::range());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_range, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_member(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_member(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::member());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_member, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_label(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_label(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::label());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_label, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_isDefinedBy(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_isDefinedBy(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::isDefinedBy());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_isDefinedBy, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_domain(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_domain(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::domain());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_domain, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_comment(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_comment(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::comment());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_comment, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_Resource(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_Resource(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::Resource());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Resource, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_Literal(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_Literal(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::Literal());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Literal, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_Datatype(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_Datatype(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::Datatype());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Datatype, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_ContainerMembershipProperty(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_ContainerMembershipProperty(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::ContainerMembershipProperty());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_ContainerMembershipProperty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_Container(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_Container(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::Container());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Container, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_Class(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_Class(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::Class());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_Class, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Vocabulary_RDFS_rdfsNamespace(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Vocabulary_RDFS_rdfsNamespace(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QUrl *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::RDFS::rdfsNamespace());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_rdfsNamespace, NULL);

    return NULL;
}


static PyMethodDef methods_Soprano_Vocabulary_RDFS[] = {
    {SIP_MLNAME_CAST(sipName_Class), meth_Soprano_Vocabulary_RDFS_Class, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Container), meth_Soprano_Vocabulary_RDFS_Container, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ContainerMembershipProperty), meth_Soprano_Vocabulary_RDFS_ContainerMembershipProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Datatype), meth_Soprano_Vocabulary_RDFS_Datatype, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Literal), meth_Soprano_Vocabulary_RDFS_Literal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Resource), meth_Soprano_Vocabulary_RDFS_Resource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comment), meth_Soprano_Vocabulary_RDFS_comment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_domain), meth_Soprano_Vocabulary_RDFS_domain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDefinedBy), meth_Soprano_Vocabulary_RDFS_isDefinedBy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_label), meth_Soprano_Vocabulary_RDFS_label, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_member), meth_Soprano_Vocabulary_RDFS_member, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_range), meth_Soprano_Vocabulary_RDFS_range, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rdfsNamespace), meth_Soprano_Vocabulary_RDFS_rdfsNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_seeAlso), meth_Soprano_Vocabulary_RDFS_seeAlso, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subClassOf), meth_Soprano_Vocabulary_RDFS_subClassOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subPropertyOf), meth_Soprano_Vocabulary_RDFS_subPropertyOf, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Vocabulary_RDFS = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Vocabulary__RDFS,
        {0}
    },
    {
        sipNameNr_RDFS,
        {85, 255, 0},
        16, methods_Soprano_Vocabulary_RDFS,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
