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

#include "sipAPIsoprano.h"




pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Client,
        {0}
    },
    {
        sipNameNr_Client,
        {11, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 65 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 69 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 72 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 75 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"


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

    {
        Soprano::BindingSet *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        Soprano::BindingSet *sipCpp;

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

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

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

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

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

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

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::BindingSet *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->count();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Soprano_BindingSet, &sipCpp, sipType_QString,&a0, &a0State, sipType_Soprano_Node, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->insert(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Soprano_BindingSet, &sipCpp, sipType_QString,&a0, &a0State, sipType_Soprano_Node, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->replace(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::BindingSet * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::BindingSet::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_BindingSet,sipSelf,sipArg);
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::BindingSet * a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Soprano::BindingSet::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_BindingSet,sipSelf,sipArg);
}


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

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

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

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

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

    {
        const QString * a0;
        int a0State = 0;

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

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

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

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

    return 0;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Soprano::BindingSet * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


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


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

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 559 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 563 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 566 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 569 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 572 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/storagemodel.sip"
#include <soprano/storagemodel.h>
#line 575 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 578 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"


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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[6];
};

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

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

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

Soprano::StorageModel * sipSoprano_Backend::createModel(const Soprano::BackendSettings& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    extern Soprano::StorageModel * sipVH_soprano_23(sip_gilstate_t,PyObject *,const QList<Soprano::BackendSetting>&);

    return sipVH_soprano_23(sipGILState,sipMeth,a0);
}

bool sipSoprano_Backend::deleteModelData(const Soprano::BackendSettings& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    extern bool sipVH_soprano_22(sip_gilstate_t,PyObject *,const QList<Soprano::BackendSetting>&);

    return sipVH_soprano_22(sipGILState,sipMeth,a0);
}

Soprano::BackendFeatures sipSoprano_Backend::supportedFeatures() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern Soprano::BackendFeatures sipVH_soprano_21(sip_gilstate_t,PyObject *);

    return sipVH_soprano_21(sipGILState,sipMeth);
}

QStringList sipSoprano_Backend::supportedUserFeatures() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_soprano_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

bool sipSoprano_Backend::isAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),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_Backend::lastError() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),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_Backend::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

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

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


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

    {
        sipSoprano_Backend *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createModel(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0100Soprano_BackendSetting,a0State);

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

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

    return NULL;
}


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

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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->deleteModelData(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<Soprano::BackendSettings *>(a0),sipType_QList_0100Soprano_BackendSetting,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Backend *sipCpp;

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Backend *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->supportsFeatures(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_BackendFeatures,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Backend)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_Soprano_Backend(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Backend(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_Backend *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_Backend(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Backend * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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


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

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

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1140 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"


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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

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

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

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

bool sipSoprano_Plugin::isAvailable() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),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);
}


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

    {
        Soprano::Plugin *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Plugin *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_Soprano_Plugin(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Plugin(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_Plugin *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_Plugin(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const Soprano::Plugin * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 1391 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1395 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1398 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"


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

    {
        Soprano::BackendSetting *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_BackendSetting, &sipCpp))
        {
            Soprano::BackendOption sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->option();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_BackendOption);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::BackendSetting *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::BackendSetting *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        const QVariant * a0;
        int a0State = 0;
        Soprano::BackendSetting *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_Soprano_BackendSetting, &sipCpp, sipType_QVariant,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        Soprano::BackendOption a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_Soprano_BackendOption, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::BackendSetting(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        Soprano::BackendOption a0;
        const QVariant * a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ1", sipType_Soprano_BackendOption, &a0, sipType_QVariant,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::BackendSetting(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            return sipCpp;
        }
    }

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

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

            return sipCpp;
        }
    }

    {
        const Soprano::BackendSetting * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Soprano_BackendSetting[] = {
    {SIP_MLNAME_CAST(sipName_option), meth_Soprano_BackendSetting_option, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setValue), meth_Soprano_BackendSetting_setValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_userOptionName), meth_Soprano_BackendSetting_userOptionName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_Soprano_BackendSetting_value, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_BackendSetting = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__BackendSetting,
        {0}
    },
    {
        sipNameNr_BackendSetting,
        {11, 255, 0},
        4, methods_Soprano_BackendSetting,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Soprano_BackendSetting,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_BackendSetting,
    assign_Soprano_BackendSetting,
    array_Soprano_BackendSetting,
    copy_Soprano_BackendSetting,
    release_Soprano_BackendSetting,
    cast_Soprano_BackendSetting,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/asyncresult.sip"
#include <soprano/asyncresult.h>
#line 1705 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1709 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 1712 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 1715 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 1718 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 1721 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 1724 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1727 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1730 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1733 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1736 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1739 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1742 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1745 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1748 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1751 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1754 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1757 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1760 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"


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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->errorCode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncResult *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_AsyncResult)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/asyncquery.sip"
#include <soprano/asyncquery.h>
#line 2096 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 2100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 2106 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2109 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/bindingset.sip"
#include <soprano/bindingset.h>
#line 2112 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2115 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2118 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2121 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2124 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2127 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2130 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2133 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2136 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2139 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2142 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2145 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2148 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2151 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2154 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->boolValue();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->bindingCount();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isGraph();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBinding();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->next();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncQuery *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Model * a0;
        const QString * a1;
        int a1State = 0;
        Soprano::Query::QueryLanguage a2;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J1E|J1", sipType_Soprano_Model, &a0, sipType_QString,&a1, &a1State, sipType_Soprano_Query_QueryLanguage, &a2, sipType_QString,&a3, &a3State))
        {
            Soprano::Util::AsyncQuery *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::Util::AsyncQuery::executeQuery(a0,*a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_AsyncQuery)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


static PyMethodDef methods_Soprano_Util_AsyncQuery[] = {
    {SIP_MLNAME_CAST(sipName_binding), meth_Soprano_Util_AsyncQuery_binding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindingCount), meth_Soprano_Util_AsyncQuery_bindingCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_bindingNames), meth_Soprano_Util_AsyncQuery_bindingNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_boolValue), meth_Soprano_Util_AsyncQuery_boolValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_Soprano_Util_AsyncQuery_close, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentBindings), meth_Soprano_Util_AsyncQuery_currentBindings, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentStatement), meth_Soprano_Util_AsyncQuery_currentStatement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_executeQuery), meth_Soprano_Util_AsyncQuery_executeQuery, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBinding), meth_Soprano_Util_AsyncQuery_isBinding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBool), meth_Soprano_Util_AsyncQuery_isBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isGraph), meth_Soprano_Util_AsyncQuery_isGraph, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_next), meth_Soprano_Util_AsyncQuery_next, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_Soprano_Util_AsyncQuery[] = {
    {"finished(Soprano::Util::AsyncQuery *)", 0, 0},
    {"nextReady(Soprano::Util::AsyncQuery *)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Util_AsyncQuery = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Util__AsyncQuery,
        {0}
    },
    {
        sipNameNr_AsyncQuery,
        {74, 255, 0},
        12, methods_Soprano_Util_AsyncQuery,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Util_AsyncQuery,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Util_AsyncQuery,
    0,
    0,
    0,
    release_Soprano_Util_AsyncQuery,
    cast_Soprano_Util_AsyncQuery,
    0,
    0,
    0
},
    &Soprano::Util::AsyncQuery::staticMetaObject,
    0,
    pyqt4_signals_Soprano_Util_AsyncQuery
};

#line 92 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2628 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2632 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2635 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"


class sipSoprano_Error_ErrorCache : public Soprano::Error::ErrorCache
{
public:
    sipSoprano_Error_ErrorCache();
    virtual ~sipSoprano_Error_ErrorCache();

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[1];
};

sipSoprano_Error_ErrorCache::sipSoprano_Error_ErrorCache(): Soprano::Error::ErrorCache(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),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_Error_ErrorCache::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

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

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


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

    {
        Soprano::Error::ErrorCache *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Error::Error((sipSelfWasArg ? sipCpp->Soprano::Error::ErrorCache::lastError() : sipCpp->lastError()));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        sipSoprano_Error_ErrorCache *sipCpp;

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

    return NULL;
}


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

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_Soprano_Error_ErrorCache, &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_ErrorCache, sipName_setError, NULL);

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipSoprano_Error_ErrorCache *>(sipCppV);
    else
        delete reinterpret_cast<Soprano::Error::ErrorCache *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Soprano_Error_ErrorCache[] = {
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Error_ErrorCache_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastError), meth_Soprano_Error_ErrorCache_lastError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Error_ErrorCache_setError, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Error_ErrorCache = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Error__ErrorCache,
        {0}
    },
    {
        sipNameNr_ErrorCache,
        {28, 255, 0},
        3, methods_Soprano_Error_ErrorCache,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_Soprano_Error_ErrorCache,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Error_ErrorCache,
    0,
    0,
    0,
    release_Soprano_Error_ErrorCache,
    cast_Soprano_Error_ErrorCache,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/asyncmodel.sip"
#include <soprano/asyncmodel.h>
#line 2929 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 2933 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 2936 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2939 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 2942 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 2945 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2948 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/asyncresult.sip"
#include <soprano/asyncresult.h>
#line 2951 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2954 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2957 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 2960 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2963 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2966 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2969 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2972 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2975 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2978 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2981 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2984 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2987 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2990 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2993 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2996 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2999 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"


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

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;
    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 *);
    void sipProtectVirt_parentStatementsAdded(bool);
    void sipProtectVirt_parentStatementsRemoved(bool);
    void sipProtectVirt_parentStatementAdded(bool,const Soprano::Statement&);
    void sipProtectVirt_parentStatementRemoved(bool,const Soprano::Statement&);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[26];
};

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

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

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

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

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

    return _id;
}

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],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_AsyncModel::parentModel() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),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_AsyncModel::addStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],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_AsyncModel::removeStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],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_AsyncModel::removeAllStatements(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],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_AsyncModel::listStatements(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::AsyncModel::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_AsyncModel::listContexts() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return Soprano::Util::AsyncModel::listContexts();

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

    return sipVH_soprano_15(sipGILState,sipMeth);
}

Soprano::QueryResultIterator sipSoprano_Util_AsyncModel::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[7]),sipPySelf,NULL,sipName_executeQuery);

    if (!sipMeth)
        return Soprano::Util::AsyncModel::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_AsyncModel::containsStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),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_AsyncModel::containsAnyStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),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_AsyncModel::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),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_AsyncModel::statementCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),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_AsyncModel::write(QTextStream& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),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_AsyncModel::createBlankNode()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],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_AsyncModel::parentStatementsAdded()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Soprano::FilterModel::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_AsyncModel::parentStatementsRemoved()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        Soprano::FilterModel::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_AsyncModel::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_AsyncModel::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_AsyncModel::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_AsyncModel::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_AsyncModel::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],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_Util_AsyncModel::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_AsyncModel::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_AsyncModel::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_AsyncModel::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_AsyncModel::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_AsyncModel::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_AsyncModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Util_AsyncModel, &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 3691 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_Util_AsyncModel, &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 3733 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_AsyncModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->mode();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Util_AsyncModel_AsyncModelMode);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->addStatementsAsync(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::Statement> *>(a0),sipType_QList_0100Soprano_Statement,a0State);

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeStatementsAsync(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::Statement> *>(a0),sipType_QList_0100Soprano_Statement,a0State);

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmptyAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->statementCountAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

    {
        Soprano::Util::AsyncModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listStatementsAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->listContextsAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createBlankNodeAsync();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::AsyncModel *sipCpp;

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

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

    return NULL;
}


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

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

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

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_AsyncModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


extern "C" {static void *init_Soprano_Util_AsyncModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Util_AsyncModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipSoprano_Util_AsyncModel *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_AsyncModel(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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

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


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

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/filtermodel.sip"
#include <soprano/filtermodel.h>
#line 4813 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 4817 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 4820 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 4823 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 4826 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 4829 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4832 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 4835 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 4838 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4841 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4844 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4847 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4850 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4853 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4856 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4859 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4862 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4865 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4868 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4871 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4874 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4877 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 4880 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"


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

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;
    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 *);
    void sipProtectVirt_parentStatementsAdded(bool);
    void sipProtectVirt_parentStatementsRemoved(bool);
    void sipProtectVirt_parentStatementAdded(bool,const Soprano::Statement&);
    void sipProtectVirt_parentStatementRemoved(bool,const Soprano::Statement&);

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[26];
};

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

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

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

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

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

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

    return _id;
}

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

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

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],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_FilterModel::parentModel() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),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_FilterModel::addStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],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_FilterModel::removeStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],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_FilterModel::removeAllStatements(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],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_FilterModel::listStatements(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),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_FilterModel::listContexts() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),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_FilterModel::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[7]),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_FilterModel::containsStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),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_FilterModel::containsAnyStatement(const Soprano::Statement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),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_FilterModel::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),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_FilterModel::statementCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),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_FilterModel::write(QTextStream& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),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_FilterModel::createBlankNode()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],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_FilterModel::parentStatementsAdded()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

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

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

void sipSoprano_FilterModel::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_FilterModel::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_FilterModel::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_FilterModel::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_FilterModel::timerEvent(QTimerEvent *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],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_FilterModel::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_FilterModel::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_FilterModel::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_FilterModel::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_FilterModel::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_FilterModel::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_FilterModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_FilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_FilterModel, &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 5578 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_FilterModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_Soprano_FilterModel, &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 5620 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart6.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_FilterModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_FilterModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_FilterModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_FilterModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_FilterModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_Soprano_FilterModel, &sipCpp, sipType_Soprano_Model, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->Soprano::FilterModel::setParentModel(a0) : sipCpp->setParentModel(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::FilterModel *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        sipSoprano_FilterModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_FilterModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_FilterModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        Soprano::Model * a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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


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




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