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

#include "sipAPIsoprano.h"

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

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


extern "C" {static int slot_Soprano_Node_N3ParserFlags___bool__(PyObject *);}
static int slot_Soprano_Node_N3ParserFlags___bool__(PyObject *sipSelf)
{
    Soprano::Node::N3ParserFlags *sipCpp = reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node_N3ParserFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Node::N3ParserFlags *sipCpp = reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node_N3ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_Node_N3ParserFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 64 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
            sipReleaseType(const_cast<Soprano::Node::N3ParserFlags *>(a0),sipType_Soprano_Node_N3ParserFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Node::N3ParserFlags *sipCpp = reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node_N3ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_Node_N3ParserFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 100 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
            sipReleaseType(const_cast<Soprano::Node::N3ParserFlags *>(a0),sipType_Soprano_Node_N3ParserFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___invert__(PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___invert__(PyObject *sipSelf)
{
    Soprano::Node::N3ParserFlags *sipCpp = reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node_N3ParserFlags));

    if (!sipCpp)
        return 0;


    {
        {
            Soprano::Node::N3ParserFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node::N3ParserFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_Node_N3ParserFlags, &a0, &a0State, &a1))
        {
            Soprano::Node::N3ParserFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node::N3ParserFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Node_N3ParserFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;
        Soprano::Node::N3ParserFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_Node_N3ParserFlags, &a0, &a0State, sipType_Soprano_Node_N3ParserFlags, &a1, &a1State))
        {
            Soprano::Node::N3ParserFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node::N3ParserFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Node_N3ParserFlags,a0State);
            sipReleaseType(a1,sipType_Soprano_Node_N3ParserFlags,a1State);

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

    {
        Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_Node_N3ParserFlags, &a0, &a0State, &a1))
        {
            Soprano::Node::N3ParserFlags *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::Node::N3ParserFlags(*a0 ^ a1);
#line 209 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
            sipReleaseType(a0,sipType_Soprano_Node_N3ParserFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;
        Soprano::Node::N3ParserFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_Node_N3ParserFlags, &a0, &a0State, sipType_Soprano_Node_N3ParserFlags, &a1, &a1State))
        {
            Soprano::Node::N3ParserFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node::N3ParserFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Node_N3ParserFlags,a0State);
            sipReleaseType(a1,sipType_Soprano_Node_N3ParserFlags,a1State);

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

    {
        Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_Node_N3ParserFlags, &a0, &a0State, &a1))
        {
            Soprano::Node::N3ParserFlags *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::Node::N3ParserFlags(*a0 | a1);
#line 261 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
            sipReleaseType(a0,sipType_Soprano_Node_N3ParserFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___int__(PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___int__(PyObject *sipSelf)
{
    Soprano::Node::N3ParserFlags *sipCpp = reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node_N3ParserFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_Node_N3ParserFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::Node::N3ParserFlags *sipCpp = reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node_N3ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_Node_N3ParserFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Node::N3ParserFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Node_N3ParserFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_Node_N3ParserFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::Node::N3ParserFlags *sipCpp = reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node_N3ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_Node_N3ParserFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Node::N3ParserFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_Node_N3ParserFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_Node_N3ParserFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node_N3ParserFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_Node_N3ParserFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::Node::N3ParserFlags *sipCpp = reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node_N3ParserFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::Node::N3ParserFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_Node_N3ParserFlags(SIP_SSIZE_T);}
static void *array_Soprano_Node_N3ParserFlags(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::Node::N3ParserFlags[sipNrElem];
}


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


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


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

    {
        const Soprano::Node::N3ParserFlags * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Node::N3ParserFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Soprano_Node_N3ParserFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_Soprano_Node_N3ParserFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Soprano::Node::N3ParserFlags **sipCppPtr = reinterpret_cast<Soprano::Node::N3ParserFlags **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Soprano::Node::N3ParserFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_Node_N3ParserFlag)) ||
            sipCanConvertToType(sipPy, sipType_Soprano_Node_N3ParserFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_Node_N3ParserFlag)))
{
    *sipCppPtr = new Soprano::Node::N3ParserFlags(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Soprano::Node::N3ParserFlags *>(sipConvertToType(sipPy, sipType_Soprano_Node_N3ParserFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 556 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_Node_N3ParserFlags[] = {
    {(void *)slot_Soprano_Node_N3ParserFlags___bool__, bool_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___ne__, ne_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___eq__, eq_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___invert__, invert_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___and__, and_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___xor__, xor_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___or__, or_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___int__, int_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___ixor__, ixor_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___ior__, ior_slot},
    {(void *)slot_Soprano_Node_N3ParserFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Node_N3ParserFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Node__N3ParserFlags,
        {0}
    },
    {
        sipNameNr_N3ParserFlags,
        {51, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Soprano_Node_N3ParserFlags,
    init_Soprano_Node_N3ParserFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Node_N3ParserFlags,
    assign_Soprano_Node_N3ParserFlags,
    array_Soprano_Node_N3ParserFlags,
    copy_Soprano_Node_N3ParserFlags,
    release_Soprano_Node_N3ParserFlags,
    cast_Soprano_Node_N3ParserFlags,
    convertTo_Soprano_Node_N3ParserFlags,
    0,
    0
},
    0,
    1,
    0
};

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

#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 633 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 636 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/literalvalue.sip"
#include <soprano/literalvalue.h>
#line 639 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 642 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 645 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_Soprano_Node_Type);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isLiteral();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isResource();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isBlank();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->uri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(sipCpp->literal());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->dataType());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Node *sipCpp;

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

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

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createEmptyNode());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QUrl, &a0))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createResourceNode(*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_Node, sipName_createResourceNode, NULL);

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createBlankNode(*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_Node, sipName_createBlankNode, NULL);

    return NULL;
}


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

    {
        const Soprano::LiteralValue * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Soprano_LiteralValue, &a0))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createLiteralNode(*a0));
            Py_END_ALLOW_THREADS

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

    {
        const Soprano::LiteralValue * a0;
        const QString * a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J1", sipType_Soprano_LiteralValue, &a0, sipType_QString,&a1, &a1State))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::createLiteralNode(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

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

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

    return NULL;
}


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

    {
        const QUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QUrl, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Soprano::Node::resourceToN3(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QString *sipRes;

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

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

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

    return NULL;
}


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

    {
        const Soprano::LiteralValue * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_Soprano_LiteralValue, &a0))
        {
            QString *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(Soprano::Node::literalToN3(*a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        Soprano::Node::N3ParserFlags a1def = Soprano::Node::NoFlags;
        Soprano::Node::N3ParserFlags * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J1", sipType_QString,&a0, &a0State, sipType_Soprano_Node_N3ParserFlags, &a1, &a1State))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::fromN3(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_Soprano_Node_N3ParserFlags,a1State);

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

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

    return NULL;
}


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

    {
        QTextStream * a0;
        Soprano::Node::N3ParserFlags a1def = Soprano::Node::NoFlags;
        Soprano::Node::N3ParserFlags * a1 = &a1def;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9|J1", sipType_QTextStream, &a0, sipType_Soprano_Node_N3ParserFlags, &a1, &a1State))
        {
            Soprano::Node *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Node(Soprano::Node::fromN3Stream(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_Soprano_Node_N3ParserFlags,a1State);

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_Node___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Node *sipCpp = reinterpret_cast<Soprano::Node *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LiteralValue * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QUrl * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::Node * a0;

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

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


extern "C" {static PyObject *slot_Soprano_Node___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Node___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Node *sipCpp = reinterpret_cast<Soprano::Node *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Node));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::Node * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QUrl * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const Soprano::LiteralValue * a0;

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

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const QUrl * a0;

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

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const Soprano::LiteralValue * a0;

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

            return sipCpp;
        }
    }

    {
        const Soprano::LiteralValue * a0;
        const QString * a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1", sipType_Soprano_LiteralValue, &a0, sipType_QString,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Node(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipCpp;
        }
    }

    {
        const Soprano::Node * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Soprano_Node[] = {
    {SIP_MLNAME_CAST(sipName_blankToN3), meth_Soprano_Node_blankToN3, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createBlankNode), meth_Soprano_Node_createBlankNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createEmptyNode), meth_Soprano_Node_createEmptyNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createLiteralNode), meth_Soprano_Node_createLiteralNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createResourceNode), meth_Soprano_Node_createResourceNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dataType), meth_Soprano_Node_dataType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromN3), meth_Soprano_Node_fromN3, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromN3Stream), meth_Soprano_Node_fromN3Stream, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifier), meth_Soprano_Node_identifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBlank), meth_Soprano_Node_isBlank, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_Node_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isLiteral), meth_Soprano_Node_isLiteral, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isResource), meth_Soprano_Node_isResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_Node_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_Soprano_Node_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_literal), meth_Soprano_Node_literal, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_literalToN3), meth_Soprano_Node_literalToN3, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_matches), meth_Soprano_Node_matches, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resourceToN3), meth_Soprano_Node_resourceToN3, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toN3), meth_Soprano_Node_toN3, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Soprano_Node_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Soprano_Node_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_uri), meth_Soprano_Node_uri, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Soprano_Node[] = {
    {sipName_BlankNode, Soprano::Node::BlankNode, 54},
    {sipName_EmptyNode, Soprano::Node::EmptyNode, 54},
    {sipName_IgnorePrefixes, Soprano::Node::IgnorePrefixes, 52},
    {sipName_LiteralNode, Soprano::Node::LiteralNode, 54},
    {sipName_NoFlags, Soprano::Node::NoFlags, 52},
    {sipName_ResourceNode, Soprano::Node::ResourceNode, 54},
    {sipName_StrictLiteralTypes, Soprano::Node::StrictLiteralTypes, 52},
    {sipName_StrictUris, Soprano::Node::StrictUris, 52},
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Node = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Node,
        {0}
    },
    {
        sipNameNr_Node,
        {11, 255, 0},
        23, methods_Soprano_Node,
        8, enummembers_Soprano_Node,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Soprano_Node,
    init_Soprano_Node,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Node,
    assign_Soprano_Node,
    array_Soprano_Node,
    copy_Soprano_Node,
    release_Soprano_Node,
    cast_Soprano_Node,
    0,
    0,
    0
},
    0,
    0,
    0
};


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


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::maintainedBy());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::Agent());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::userVisible());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::isDataGraphFor());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::deprecated());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::version());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::status());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::serializationLanguage());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::scoreParameter());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::score());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::rating());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::prefSymbol());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::prefLabel());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::pluralPrefLabel());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::personalIdentifier());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::numericRating());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::modified());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::lastModified());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::isTopicOf());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::isTagFor());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::isRelated());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::identifier());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::iconName());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::hasTopic());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::hasTag());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::hasSymbol());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::hasSuperResource());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::hasSubResource());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::hasDefaultNamespaceAbbreviation());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::hasDefaultNamespace());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::engineeringTool());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::description());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::creator());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::created());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::contributor());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::annotation());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::altSymbol());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::altLabel());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::Tag());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::Symbol());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::Party());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::FreeDesktopIcon());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::Vocabulary::NAO::naoNamespace());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


static PyMethodDef methods_Soprano_Vocabulary_NAO[] = {
    {SIP_MLNAME_CAST(sipName_Agent), meth_Soprano_Vocabulary_NAO_Agent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_FreeDesktopIcon), meth_Soprano_Vocabulary_NAO_FreeDesktopIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Party), meth_Soprano_Vocabulary_NAO_Party, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Symbol), meth_Soprano_Vocabulary_NAO_Symbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_Tag), meth_Soprano_Vocabulary_NAO_Tag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_altLabel), meth_Soprano_Vocabulary_NAO_altLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_altSymbol), meth_Soprano_Vocabulary_NAO_altSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotation), meth_Soprano_Vocabulary_NAO_annotation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contributor), meth_Soprano_Vocabulary_NAO_contributor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_created), meth_Soprano_Vocabulary_NAO_created, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_creator), meth_Soprano_Vocabulary_NAO_creator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deprecated), meth_Soprano_Vocabulary_NAO_deprecated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_description), meth_Soprano_Vocabulary_NAO_description, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_engineeringTool), meth_Soprano_Vocabulary_NAO_engineeringTool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasDefaultNamespace), meth_Soprano_Vocabulary_NAO_hasDefaultNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasDefaultNamespaceAbbreviation), meth_Soprano_Vocabulary_NAO_hasDefaultNamespaceAbbreviation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSubResource), meth_Soprano_Vocabulary_NAO_hasSubResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSuperResource), meth_Soprano_Vocabulary_NAO_hasSuperResource, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasSymbol), meth_Soprano_Vocabulary_NAO_hasSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTag), meth_Soprano_Vocabulary_NAO_hasTag, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasTopic), meth_Soprano_Vocabulary_NAO_hasTopic, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_iconName), meth_Soprano_Vocabulary_NAO_iconName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_identifier), meth_Soprano_Vocabulary_NAO_identifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDataGraphFor), meth_Soprano_Vocabulary_NAO_isDataGraphFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isRelated), meth_Soprano_Vocabulary_NAO_isRelated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTagFor), meth_Soprano_Vocabulary_NAO_isTagFor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTopicOf), meth_Soprano_Vocabulary_NAO_isTopicOf, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastModified), meth_Soprano_Vocabulary_NAO_lastModified, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_maintainedBy), meth_Soprano_Vocabulary_NAO_maintainedBy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modified), meth_Soprano_Vocabulary_NAO_modified, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_naoNamespace), meth_Soprano_Vocabulary_NAO_naoNamespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_numericRating), meth_Soprano_Vocabulary_NAO_numericRating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_personalIdentifier), meth_Soprano_Vocabulary_NAO_personalIdentifier, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_pluralPrefLabel), meth_Soprano_Vocabulary_NAO_pluralPrefLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prefLabel), meth_Soprano_Vocabulary_NAO_prefLabel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prefSymbol), meth_Soprano_Vocabulary_NAO_prefSymbol, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rating), meth_Soprano_Vocabulary_NAO_rating, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_score), meth_Soprano_Vocabulary_NAO_score, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_scoreParameter), meth_Soprano_Vocabulary_NAO_scoreParameter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_serializationLanguage), meth_Soprano_Vocabulary_NAO_serializationLanguage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_status), meth_Soprano_Vocabulary_NAO_status, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_userVisible), meth_Soprano_Vocabulary_NAO_userVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_version), meth_Soprano_Vocabulary_NAO_version, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Vocabulary_NAO = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Vocabulary__NAO,
        {0}
    },
    {
        sipNameNr_NAO,
        {85, 255, 0},
        43, methods_Soprano_Vocabulary_NAO,
        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
};




pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Vocabulary = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_Soprano__Vocabulary,
        {0}
    },
    {
        sipNameNr_Vocabulary,
        {11, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/mutexmodel.sip"
#include <soprano/mutexmodel.h>
#line 2901 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"

#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 2905 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statement.sip"
#include <soprano/statement.h>
#line 2908 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/queryresultiterator.sip"
#include <soprano/queryresultiterator.h>
#line 2911 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2914 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/nodeiterator.sip"
#include <soprano/nodeiterator.h>
#line 2917 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 25 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/statementiterator.sip"
#include <soprano/statementiterator.h>
#line 2920 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/node.sip"
#include <soprano/node.h>
#line 2923 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 2926 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2929 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2932 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2935 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2938 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2941 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2944 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2947 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2950 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2953 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2956 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2959 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2962 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2965 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 2968 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"


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

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_clearError() const;
    void sipProtect_setError(const Soprano::Error::Error&) const;
    void sipProtect_setError(const QString&,int) const;
    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_MutexModel(const sipSoprano_Util_MutexModel &);
    sipSoprano_Util_MutexModel &operator = (const sipSoprano_Util_MutexModel &);

    char sipPyMethods[26];
};

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

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

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

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

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

    return _id;
}

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

void sipSoprano_Util_MutexModel::setParentModel(Soprano::Model *a0)
{
    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_MutexModel::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_MutexModel::addStatement(const Soprano::Statement& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

    if (!sipMeth)
        return Soprano::Util::MutexModel::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_MutexModel::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::MutexModel::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_MutexModel::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::MutexModel::listContexts();

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

    return sipVH_soprano_15(sipGILState,sipMeth);
}

Soprano::QueryResultIterator sipSoprano_Util_MutexModel::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::MutexModel::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_MutexModel::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::Util::MutexModel::containsStatement(a0);

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

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

bool sipSoprano_Util_MutexModel::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::Util::MutexModel::containsAnyStatement(a0);

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

    return sipVH_soprano_1(sipGILState,sipMeth,a0);
}

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

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

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

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

    if (!sipMeth)
        return Soprano::Util::MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::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_MutexModel::sipProtect_clearError() const
{
    Soprano::Error::ErrorCache::clearError();
}

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_MutexModel *sipCpp;

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipSoprano_Util_MutexModel *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

            return sipConvertFromEnum(sipRes,sipType_Soprano_Error_ErrorCode);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Util::MutexModel *sipCpp;

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

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

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

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

    return NULL;
}


extern "C" {static PyObject *meth_Soprano_Util_MutexModel_executeQuery(PyObject *, PyObject *);}
static PyObject *meth_Soprano_Util_MutexModel_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::MutexModel *sipCpp;

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

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

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

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::MutexModel *sipCpp;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Util::MutexModel *sipCpp;

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

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Util_MutexModel)
        return ptr;

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        Soprano::Util::MutexModel::ProtectionMode a0;
        Soprano::Model * a1 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


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

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


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

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/locator.sip"
#include <soprano/locator.h>
#line 4417 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"

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


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

    {
        Soprano::Error::Locator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->line();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Locator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->column();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Locator *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->byte();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::Error::Locator *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        int a0;
        Soprano::Error::Locator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Soprano_Error_Locator, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setLine(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_Locator, sipName_setLine, NULL);

    return NULL;
}


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

    {
        int a0;
        Soprano::Error::Locator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Soprano_Error_Locator, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setColumn(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_Locator, sipName_setColumn, NULL);

    return NULL;
}


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

    {
        int a0;
        Soprano::Error::Locator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Soprano_Error_Locator, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setByte(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_Locator, sipName_setByte, NULL);

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::Error::Locator *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_Error_Locator(SIP_SSIZE_T);}
static void *array_Soprano_Error_Locator(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::Error::Locator[sipNrElem];
}


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


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


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

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

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        int a2 = -1;
        const QString& a3def = QString();
        const QString * a3 = &a3def;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ii|iJ1", &a0, &a1, &a2, sipType_QString,&a3, &a3State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Error::Locator(a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            return sipCpp;
        }
    }

    {
        const Soprano::Error::Locator * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_Soprano_Error_Locator[] = {
    {SIP_MLNAME_CAST(sipName_byte), meth_Soprano_Error_Locator_byte, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_column), meth_Soprano_Error_Locator_column, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_Soprano_Error_Locator_fileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_line), meth_Soprano_Error_Locator_line, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setByte), meth_Soprano_Error_Locator_setByte, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setColumn), meth_Soprano_Error_Locator_setColumn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_Soprano_Error_Locator_setFileName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLine), meth_Soprano_Error_Locator_setLine, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Error_Locator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Error__Locator,
        {0}
    },
    {
        sipNameNr_Locator,
        {28, 255, 0},
        8, methods_Soprano_Error_Locator,
        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_Locator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Error_Locator,
    assign_Soprano_Error_Locator,
    array_Soprano_Error_Locator,
    copy_Soprano_Error_Locator,
    release_Soprano_Error_Locator,
    cast_Soprano_Error_Locator,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/localsocketclient.sip"
#include <soprano/localsocketclient.h>
#line 4812 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4816 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4819 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 53 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/model.sip"
#include <soprano/model.h>
#line 4822 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4825 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/backend.sip"
#include <soprano/backend.h>
#line 4828 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4831 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4834 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4837 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4840 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4843 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4846 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4849 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4852 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4855 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4858 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/error.sip"
#include <soprano/error.h>
#line 4861 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"


class sipSoprano_Client_LocalSocketClient : public Soprano::Client::LocalSocketClient
{
public:
    sipSoprano_Client_LocalSocketClient(QObject *);
    virtual ~sipSoprano_Client_LocalSocketClient();

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

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

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

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

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

const QMetaObject *sipSoprano_Client_LocalSocketClient::metaObject() const
{
    return sip_soprano_qt_metaobject(sipPySelf,sipType_Soprano_Client_LocalSocketClient);
}

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

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

    return _id;
}

void *sipSoprano_Client_LocalSocketClient::qt_metacast(const char *_clname)
{
    return (sip_soprano_qt_metacast && sip_soprano_qt_metacast(sipPySelf,sipType_Soprano_Client_LocalSocketClient,_clname)) ? this : Soprano::Client::LocalSocketClient::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return sipVH_soprano_20(sipGILState,sipMeth);
}

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

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

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

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

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

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

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

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

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

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


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

    {
        sipSoprano_Client_LocalSocketClient *sipCpp;

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

    return NULL;
}


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

    {
        sipSoprano_Client_LocalSocketClient *sipCpp;

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

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

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

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

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        QTimerEvent * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

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

    return NULL;
}


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

    {
        QChildEvent * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

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

    return NULL;
}


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

    {
        QEvent * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

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

    return NULL;
}


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

    {
        char * a0;
        sipSoprano_Client_LocalSocketClient *sipCpp;

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

    return NULL;
}


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

    {
        Soprano::Client::LocalSocketClient *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isConnected();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString& a0def = QString();
        const QString * a0 = &a0def;
        int a0State = 0;
        Soprano::Client::LocalSocketClient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_Soprano_Client_LocalSocketClient, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->connect(*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_LocalSocketClient, sipName_connect, NULL);

    return NULL;
}


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

    {
        Soprano::Client::LocalSocketClient *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_Soprano_Client_LocalSocketClient)
        return ptr;

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

    {
        QObject * a0 = 0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Soprano_Client_LocalSocketClient[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_Soprano_Client_LocalSocketClient_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearError), meth_Soprano_Client_LocalSocketClient_clearError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connect), meth_Soprano_Client_LocalSocketClient_connect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_Soprano_Client_LocalSocketClient_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createModel), meth_Soprano_Client_LocalSocketClient_createModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_Soprano_Client_LocalSocketClient_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnect), meth_Soprano_Client_LocalSocketClient_disconnect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_Soprano_Client_LocalSocketClient_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isConnected), meth_Soprano_Client_LocalSocketClient_isConnected, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_Soprano_Client_LocalSocketClient_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeModel), meth_Soprano_Client_LocalSocketClient_removeModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_Soprano_Client_LocalSocketClient_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setError), meth_Soprano_Client_LocalSocketClient_setError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_Soprano_Client_LocalSocketClient_timerEvent, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Client_LocalSocketClient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_Soprano__Client__LocalSocketClient,
        {0}
    },
    {
        sipNameNr_LocalSocketClient,
        {19, 255, 0},
        14, methods_Soprano_Client_LocalSocketClient,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_Soprano_Client_LocalSocketClient,
    0,
    init_Soprano_Client_LocalSocketClient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Client_LocalSocketClient,
    0,
    0,
    0,
    release_Soprano_Client_LocalSocketClient,
    cast_Soprano_Client_LocalSocketClient,
    0,
    0,
    0
},
    &Soprano::Client::LocalSocketClient::staticMetaObject,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/literalvalue.sip"
#include <soprano/literalvalue.h>
#line 5713 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"

#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5717 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 562 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5720 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5723 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5726 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 204 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5729 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 360 "/usr/local/share/py-sip/QtCore/qdatetime.sip"
#include <qdatetime.h>
#line 5732 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5735 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5738 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 5741 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isPlain();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isInt64();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isUnsignedInt64();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_LiteralValue, &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_LiteralValue, sipName_isBool, NULL);

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDouble();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isString();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDate();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isDateTime();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isByteArray();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_LiteralValue, &sipCpp))
        {
            qlonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt64();
            Py_END_ALLOW_THREADS

            return PyLong_FromLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_LiteralValue, &sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUnsignedInt();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_LiteralValue, &sipCpp))
        {
            qulonglong sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toUnsignedInt64();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toBool();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_LiteralValue, &sipCpp))
        {
            double sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toDouble();
            Py_END_ALLOW_THREADS

            return PyFloat_FromDouble(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDate(sipCpp->toDate());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTime(sipCpp->toTime());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDateTime(sipCpp->toDateTime());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QByteArray(sipCpp->toByteArray());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(sipCpp->dataTypeUri());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag(sipCpp->language());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_LiteralValue, &sipCpp))
        {
            QVariant::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->type();
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QVariant_Type);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LiteralValue *sipCpp;

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

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1E", sipType_QString,&a0, &a0State, sipType_QVariant_Type, &a1))
        {
            Soprano::LiteralValue *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(Soprano::LiteralValue::fromString(*a0,a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9", sipType_QString,&a0, &a0State, sipType_QUrl, &a1))
        {
            Soprano::LiteralValue *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(Soprano::LiteralValue::fromString(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const Soprano::LanguageTag& a1def = Soprano::LanguageTag();
        const Soprano::LanguageTag * a1 = &a1def;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1|J9", sipType_QString,&a0, &a0State, sipType_Soprano_LanguageTag, &a1))
        {
            Soprano::LiteralValue *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LiteralValue(Soprano::LiteralValue::createPlainLiteral(*a0,*a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QUrl * a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QUrl, &a0))
        {
            QVariant::Type sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::LiteralValue::typeFromDataTypeUri(*a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromEnum(sipRes,sipType_QVariant_Type);
        }
    }

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

    return NULL;
}


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

    {
        QVariant::Type a0;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QUrl(Soprano::LiteralValue::dataTypeUriFromType(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_LiteralValue___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LiteralValue___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LiteralValue *sipCpp = reinterpret_cast<Soprano::LiteralValue *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LiteralValue));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LiteralValue * a0;

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

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


extern "C" {static PyObject *slot_Soprano_LiteralValue___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LiteralValue___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LiteralValue *sipCpp = reinterpret_cast<Soprano::LiteralValue *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LiteralValue));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LiteralValue * a0;

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

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Soprano::LiteralValue * a0;

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

            return sipCpp;
        }
    }

    {
        const QVariant * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        qlonglong a0;

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

            return sipCpp;
        }
    }

    {
        double a0;

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

            return sipCpp;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "AA", &a0Keep, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LiteralValue(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipCpp;
        }
    }

    {
        const QLatin1String * a0;

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

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QDate * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QTime * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QDateTime * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QByteArray * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_Soprano_LiteralValue[] = {
    {SIP_MLNAME_CAST(sipName_createPlainLiteral), meth_Soprano_LiteralValue_createPlainLiteral, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dataTypeUri), meth_Soprano_LiteralValue_dataTypeUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dataTypeUriFromType), meth_Soprano_LiteralValue_dataTypeUriFromType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fromString), meth_Soprano_LiteralValue_fromString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isBool), meth_Soprano_LiteralValue_isBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isByteArray), meth_Soprano_LiteralValue_isByteArray, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDate), meth_Soprano_LiteralValue_isDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDateTime), meth_Soprano_LiteralValue_isDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDouble), meth_Soprano_LiteralValue_isDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt), meth_Soprano_LiteralValue_isInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isInt64), meth_Soprano_LiteralValue_isInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isPlain), meth_Soprano_LiteralValue_isPlain, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isString), meth_Soprano_LiteralValue_isString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isTime), meth_Soprano_LiteralValue_isTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt), meth_Soprano_LiteralValue_isUnsignedInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isUnsignedInt64), meth_Soprano_LiteralValue_isUnsignedInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_LiteralValue_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_language), meth_Soprano_LiteralValue_language, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toBool), meth_Soprano_LiteralValue_toBool, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toByteArray), meth_Soprano_LiteralValue_toByteArray, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDate), meth_Soprano_LiteralValue_toDate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDateTime), meth_Soprano_LiteralValue_toDateTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toDouble), meth_Soprano_LiteralValue_toDouble, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt), meth_Soprano_LiteralValue_toInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt64), meth_Soprano_LiteralValue_toInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Soprano_LiteralValue_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toTime), meth_Soprano_LiteralValue_toTime, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedInt), meth_Soprano_LiteralValue_toUnsignedInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toUnsignedInt64), meth_Soprano_LiteralValue_toUnsignedInt64, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_type), meth_Soprano_LiteralValue_type, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_typeFromDataTypeUri), meth_Soprano_LiteralValue_typeFromDataTypeUri, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variant), meth_Soprano_LiteralValue_variant, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_LiteralValue = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__LiteralValue,
        {0}
    },
    {
        sipNameNr_LiteralValue,
        {11, 255, 0},
        32, methods_Soprano_LiteralValue,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Soprano_LiteralValue,
    init_Soprano_LiteralValue,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_LiteralValue,
    assign_Soprano_LiteralValue,
    array_Soprano_LiteralValue,
    copy_Soprano_LiteralValue,
    release_Soprano_LiteralValue,
    cast_Soprano_LiteralValue,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 7028 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 7032 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"


extern "C" {static int slot_Soprano_LanguageTag_LookupFlags___bool__(PyObject *);}
static int slot_Soprano_LanguageTag_LookupFlags___bool__(PyObject *sipSelf)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 331 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != 0);
#line 7050 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_LanguageTag_LookupFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 326 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() != a0->operator int());
#line 7080 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
            sipReleaseType(const_cast<Soprano::LanguageTag::LookupFlags *>(a0),sipType_Soprano_LanguageTag_LookupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_LanguageTag_LookupFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 321 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 7116 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
            sipReleaseType(const_cast<Soprano::LanguageTag::LookupFlags *>(a0),sipType_Soprano_LanguageTag_LookupFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

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


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___invert__(PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___invert__(PyObject *sipSelf)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;


    {
        {
            Soprano::LanguageTag::LookupFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag::LookupFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

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

    return 0;
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_LanguageTag_LookupFlags, &a0, &a0State, &a1))
        {
            Soprano::LanguageTag::LookupFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag::LookupFlags((*a0 & a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;
        Soprano::LanguageTag::LookupFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_LanguageTag_LookupFlags, &a0, &a0State, sipType_Soprano_LanguageTag_LookupFlags, &a1, &a1State))
        {
            Soprano::LanguageTag::LookupFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag::LookupFlags((*a0 ^ *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);
            sipReleaseType(a1,sipType_Soprano_LanguageTag_LookupFlags,a1State);

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

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_LanguageTag_LookupFlags, &a0, &a0State, &a1))
        {
            Soprano::LanguageTag::LookupFlags *sipRes = 0;

#line 315 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::LanguageTag::LookupFlags(*a0 ^ a1);
#line 7225 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;
        Soprano::LanguageTag::LookupFlags * a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_Soprano_LanguageTag_LookupFlags, &a0, &a0State, sipType_Soprano_LanguageTag_LookupFlags, &a1, &a1State))
        {
            Soprano::LanguageTag::LookupFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::LanguageTag::LookupFlags((*a0 | *a1));
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);
            sipReleaseType(a1,sipType_Soprano_LanguageTag_LookupFlags,a1State);

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

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_Soprano_LanguageTag_LookupFlags, &a0, &a0State, &a1))
        {
            Soprano::LanguageTag::LookupFlags *sipRes = 0;

#line 310 "/usr/local/share/py-sip/QtCore/qglobal.sip"
        sipRes = new Soprano::LanguageTag::LookupFlags(*a0 | a1);
#line 7277 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___int__(PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___int__(PyObject *sipSelf)
{
    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_LanguageTag_LookupFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::LanguageTag::LookupFlags::operator^=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_Soprano_LanguageTag_LookupFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::LanguageTag::LookupFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Soprano_LanguageTag_LookupFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_Soprano_LanguageTag_LookupFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag_LookupFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    Soprano::LanguageTag::LookupFlags *sipCpp = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag_LookupFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->Soprano::LanguageTag::LookupFlags::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

    return NULL;
}


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

    delete reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


extern "C" {static void *array_Soprano_LanguageTag_LookupFlags(SIP_SSIZE_T);}
static void *array_Soprano_LanguageTag_LookupFlags(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::LanguageTag::LookupFlags[sipNrElem];
}


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


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


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

    {
        const Soprano::LanguageTag::LookupFlags * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag::LookupFlags(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

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

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_Soprano_LanguageTag_LookupFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_Soprano_LanguageTag_LookupFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    Soprano::LanguageTag::LookupFlags **sipCppPtr = reinterpret_cast<Soprano::LanguageTag::LookupFlags **>(sipCppPtrV);

#line 336 "/usr/local/share/py-sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a Soprano::LanguageTag::LookupFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlag)) ||
            sipCanConvertToType(sipPy, sipType_Soprano_LanguageTag_LookupFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Soprano_LanguageTag_LookupFlag)))
{
    *sipCppPtr = new Soprano::LanguageTag::LookupFlags(SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<Soprano::LanguageTag::LookupFlags *>(sipConvertToType(sipPy, sipType_Soprano_LanguageTag_LookupFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 7572 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_LanguageTag_LookupFlags[] = {
    {(void *)slot_Soprano_LanguageTag_LookupFlags___bool__, bool_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___ne__, ne_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___eq__, eq_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___invert__, invert_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___and__, and_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___xor__, xor_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___or__, or_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___int__, int_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___ixor__, ixor_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___ior__, ior_slot},
    {(void *)slot_Soprano_LanguageTag_LookupFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_LanguageTag_LookupFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__LanguageTag__LookupFlags,
        {0}
    },
    {
        sipNameNr_LookupFlags,
        {44, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Soprano_LanguageTag_LookupFlags,
    init_Soprano_LanguageTag_LookupFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_LanguageTag_LookupFlags,
    assign_Soprano_LanguageTag_LookupFlags,
    array_Soprano_LanguageTag_LookupFlags,
    copy_Soprano_LanguageTag_LookupFlags,
    release_Soprano_LanguageTag_LookupFlags,
    cast_Soprano_LanguageTag_LookupFlags,
    convertTo_Soprano_LanguageTag_LookupFlags,
    0,
    0
},
    0,
    1,
    0
};

#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 7645 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"

#line 562 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7649 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 7652 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 7655 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 7658 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/languagetag.sip"
#include <soprano/languagetag.h>
#line 7661 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 7664 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"


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

    {
        const Soprano::LanguageTag * a0;
        Soprano::LanguageTag::MatchFilter a1 = Soprano::LanguageTag::MatchFilterBasic;
        Soprano::LanguageTag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|E", &sipSelf, sipType_Soprano_LanguageTag, &sipCpp, sipType_Soprano_LanguageTag, &a0, sipType_Soprano_LanguageTag_MatchFilter, &a1))
        {
            bool sipRes;

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LanguageTag *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LanguageTag *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isValid();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        Soprano::LanguageTag *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::LanguageTag *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::LanguageTag *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::LanguageTag *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QLocale(sipCpp->toLocale());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QList<Soprano::LanguageTag> * a0;
        int a0State = 0;
        const QList<Soprano::LanguageTag> * a1;
        int a1State = 0;
        Soprano::LanguageTag::LookupFlags a2def = Soprano::LanguageTag::LookupFlagNone;
        Soprano::LanguageTag::LookupFlags * a2 = &a2def;
        int a2State = 0;
        Soprano::LanguageTag::MatchFilter a3 = Soprano::LanguageTag::MatchFilterBasic;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1|J1E", sipType_QList_0100Soprano_LanguageTag,&a0, &a0State, sipType_QList_0100Soprano_LanguageTag,&a1, &a1State, sipType_Soprano_LanguageTag_LookupFlags, &a2, &a2State, sipType_Soprano_LanguageTag_MatchFilter, &a3))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::LanguageTag::lookup(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::LanguageTag> *>(a0),sipType_QList_0100Soprano_LanguageTag,a0State);
            sipReleaseType(const_cast<QList<Soprano::LanguageTag> *>(a1),sipType_QList_0100Soprano_LanguageTag,a1State);
            sipReleaseType(a2,sipType_Soprano_LanguageTag_LookupFlags,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QList<Soprano::LanguageTag> * a0;
        int a0State = 0;
        const Soprano::LanguageTag * a1;
        Soprano::LanguageTag::LookupFlags a2def = Soprano::LanguageTag::LookupFlagNone;
        Soprano::LanguageTag::LookupFlags * a2 = &a2def;
        int a2State = 0;
        Soprano::LanguageTag::MatchFilter a3 = Soprano::LanguageTag::MatchFilterBasic;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9|J1E", sipType_QList_0100Soprano_LanguageTag,&a0, &a0State, sipType_Soprano_LanguageTag, &a1, sipType_Soprano_LanguageTag_LookupFlags, &a2, &a2State, sipType_Soprano_LanguageTag_MatchFilter, &a3))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = Soprano::LanguageTag::lookup(*a0,*a1,*a2,a3);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QList<Soprano::LanguageTag> *>(a0),sipType_QList_0100Soprano_LanguageTag,a0State);
            sipReleaseType(a2,sipType_Soprano_LanguageTag_LookupFlags,a2State);

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___ge__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LanguageTag * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,ge_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___gt__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag___gt__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LanguageTag * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,gt_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___le__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag___le__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LanguageTag * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,le_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___lt__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LanguageTag * a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_soprano,lt_slot,sipType_Soprano_LanguageTag,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_Soprano_LanguageTag___ne__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LanguageTag * a0;

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

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


extern "C" {static PyObject *slot_Soprano_LanguageTag___eq__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_LanguageTag___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::LanguageTag *sipCpp = reinterpret_cast<Soprano::LanguageTag *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_LanguageTag));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const Soprano::LanguageTag * a0;

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

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


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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const Soprano::LanguageTag * a0;

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

            return sipCpp;
        }
    }

    {
        const char * a0;
        PyObject *a0Keep;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "AA", &a0Keep, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipCpp;
        }
    }

    {
        const QLatin1String * a0;

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

            return sipCpp;
        }
    }

    {
        const QString * a0;
        int a0State = 0;

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

            return sipCpp;
        }
    }

    {
        const QLocale * a0;

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

            return sipCpp;
        }
    }

    {
        QLocale::Language a0;
        QLocale::Country a1 = QLocale::AnyCountry;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E|E", sipType_QLocale_Language, &a0, sipType_QLocale_Country, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::LanguageTag(a0,a1);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_LanguageTag[] = {
    {(void *)slot_Soprano_LanguageTag___ge__, ge_slot},
    {(void *)slot_Soprano_LanguageTag___gt__, gt_slot},
    {(void *)slot_Soprano_LanguageTag___le__, le_slot},
    {(void *)slot_Soprano_LanguageTag___lt__, lt_slot},
    {(void *)slot_Soprano_LanguageTag___ne__, ne_slot},
    {(void *)slot_Soprano_LanguageTag___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Soprano_LanguageTag[] = {
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_Soprano_LanguageTag_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_Soprano_LanguageTag_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lookup), meth_Soprano_LanguageTag_lookup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_matches), meth_Soprano_LanguageTag_matches, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_subTags), meth_Soprano_LanguageTag_subTags, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toLocale), meth_Soprano_LanguageTag_toLocale, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toPrettyString), meth_Soprano_LanguageTag_toPrettyString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_Soprano_LanguageTag_toString, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_Soprano_LanguageTag[] = {
    {sipName_LookupFlagNoFallback, Soprano::LanguageTag::LookupFlagNoFallback, 45},
    {sipName_LookupFlagNone, Soprano::LanguageTag::LookupFlagNone, 45},
    {sipName_MatchFilterBasic, Soprano::LanguageTag::MatchFilterBasic, 47},
    {sipName_MatchFilterExtended, Soprano::LanguageTag::MatchFilterExtended, 47},
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_LanguageTag = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__LanguageTag,
        {0}
    },
    {
        sipNameNr_LanguageTag,
        {11, 255, 0},
        8, methods_Soprano_LanguageTag,
        4, enummembers_Soprano_LanguageTag,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Soprano_LanguageTag,
    init_Soprano_LanguageTag,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_LanguageTag,
    assign_Soprano_LanguageTag,
    array_Soprano_LanguageTag,
    copy_Soprano_LanguageTag,
    release_Soprano_LanguageTag,
    cast_Soprano_LanguageTag,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 8363 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/inferencerule.sip"
#include <soprano/inferencerule.h>
#line 8366 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8369 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8372 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/soprano/sipsopranopart3.cpp"


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

    {
        Soprano::Inference::RuleSet *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const Soprano::Inference::Rule * a1;
        Soprano::Inference::RuleSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_Soprano_Inference_RuleSet, &sipCpp, sipType_QString,&a0, &a0State, sipType_Soprano_Inference_Rule, &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_RuleSet, sipName_insert, NULL);

    return NULL;
}


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

    {
        Soprano::Inference::RuleSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Soprano_Inference_RuleSet, &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_RuleSet, sipName_count, NULL);

    return NULL;
}


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

    {
        int a0;
        Soprano::Inference::RuleSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_Soprano_Inference_RuleSet, &sipCpp, &a0))
        {
            Soprano::Inference::Rule *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::Rule(sipCpp->at(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Inference::RuleSet *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        Soprano::Inference::RuleSet *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<Soprano::Inference::Rule>(sipCpp->allRules());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        Soprano::Inference::StandardRuleSet a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_Soprano_Inference_StandardRuleSet, &a0))
        {
            Soprano::Inference::RuleSet *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::RuleSet(Soprano::Inference::RuleSet::standardRuleSet(a0));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *slot_Soprano_Inference_RuleSet___getitem__(PyObject *,PyObject *);}
static PyObject *slot_Soprano_Inference_RuleSet___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    Soprano::Inference::RuleSet *sipCpp = reinterpret_cast<Soprano::Inference::RuleSet *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Soprano_Inference_RuleSet));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Soprano::Inference::Rule *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::Rule((*sipCpp)[a0]);
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_Soprano_Inference_Rule,NULL);
        }
    }

    {
        const QString * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QString,&a0, &a0State))
        {
            Soprano::Inference::Rule *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new Soprano::Inference::Rule((*sipCpp)[*a0]);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_Soprano_Inference_Rule,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_RuleSet, sipName___getitem__, NULL);

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_Soprano_Inference_RuleSet(void *, const sipTypeDef *);}
static void *cast_Soprano_Inference_RuleSet(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_Soprano_Inference_RuleSet)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_Soprano_Inference_RuleSet(void *, int);}
static void release_Soprano_Inference_RuleSet(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<Soprano::Inference::RuleSet *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_Soprano_Inference_RuleSet(void *, SIP_SSIZE_T, const void *);}
static void assign_Soprano_Inference_RuleSet(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<Soprano::Inference::RuleSet *>(sipDst)[sipDstIdx] = *reinterpret_cast<const Soprano::Inference::RuleSet *>(sipSrc);
}


extern "C" {static void *array_Soprano_Inference_RuleSet(SIP_SSIZE_T);}
static void *array_Soprano_Inference_RuleSet(SIP_SSIZE_T sipNrElem)
{
    return new Soprano::Inference::RuleSet[sipNrElem];
}


extern "C" {static void *copy_Soprano_Inference_RuleSet(const void *, SIP_SSIZE_T);}
static void *copy_Soprano_Inference_RuleSet(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new Soprano::Inference::RuleSet(reinterpret_cast<const Soprano::Inference::RuleSet *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_Soprano_Inference_RuleSet(sipSimpleWrapper *);}
static void dealloc_Soprano_Inference_RuleSet(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_Soprano_Inference_RuleSet(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_Soprano_Inference_RuleSet(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_Soprano_Inference_RuleSet(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    Soprano::Inference::RuleSet *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::RuleSet();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const Soprano::Inference::RuleSet * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_Soprano_Inference_RuleSet, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new Soprano::Inference::RuleSet(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_Soprano_Inference_RuleSet[] = {
    {(void *)slot_Soprano_Inference_RuleSet___getitem__, getitem_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_Soprano_Inference_RuleSet[] = {
    {SIP_MLNAME_CAST(sipName_allRules), meth_Soprano_Inference_RuleSet_allRules, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_at), meth_Soprano_Inference_RuleSet_at, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_Soprano_Inference_RuleSet_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_count), meth_Soprano_Inference_RuleSet_count, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insert), meth_Soprano_Inference_RuleSet_insert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_rule), meth_Soprano_Inference_RuleSet_rule, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ruleNames), meth_Soprano_Inference_RuleSet_ruleNames, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_standardRuleSet), meth_Soprano_Inference_RuleSet_standardRuleSet, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_soprano_Soprano_Inference_RuleSet = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_Soprano__Inference__RuleSet,
        {0}
    },
    {
        sipNameNr_RuleSet,
        {36, 255, 0},
        8, methods_Soprano_Inference_RuleSet,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_Soprano_Inference_RuleSet,
    init_Soprano_Inference_RuleSet,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_Soprano_Inference_RuleSet,
    assign_Soprano_Inference_RuleSet,
    array_Soprano_Inference_RuleSet,
    copy_Soprano_Inference_RuleSet,
    release_Soprano_Inference_RuleSet,
    cast_Soprano_Inference_RuleSet,
    0,
    0,
    0
},
    0,
    0,
    0
};
